I have a database (Sql Server 2005) where there are dozens of tables, each of which has a number of columns (on average 10-20) with da
You can easily find them, using:
select 'alter table ' + quotename(o.name) + ' alter column ' + quotename(c.name) + ' varchar(250); '
from sys.columns c
join
sys.objects o
on o.object_id = c.object_id
where o.type = 'U'
and c.user_type_id = 231
and c.max_length = -1
So now just grab the results of your query and run it.
Rob