Hi all,
I am a logical issue. I want to alter the data type of the some columns but to alter the data type of each column I will have to write the query number of times. for example
alter table ratesys_gc_cdr
alter column moderator_id varchar(10)
--
--
--
alter table ratesys_gc_cdr
alter column n varchar(10)
So the my question is, can we make it in a single alter script?
I am using sqlserver 2005.
Alter column in Single query
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Manikavelu VelayuthamRank #413 · 6K reputationPosted Sep 12, 2010, 10:58 PM EDT
like "alter table.....go alter table.....go"
finally you can execute the line at once.
anil indorkar71 reputationPosted Sep 12, 2010, 11:18 PM EDT
Thanks for the reply.
I want to make sure this is not possible in single alter script. I have done in what way you have described.
Manikavelu VelayuthamRank #413 · 6K reputationPosted Sep 12, 2010, 11:23 PM EDT