I need to add around 600 columns to an existing table for testing purpose
declare @counter int
set @counter = 1
while @counter < 601
begin
ALTER TABLE Info ADD column+@counter varchar(max);
set @counter = @counter + 1
end
The column name should looks like column1,column2….column600
As this is purely for testing a quick and dirty way is to do this:
Although I have to wonder why you would want 600 columns in a table