declare @cou int,@filed varchar(300),@tableame varchar(30)set @cou=21set @tableame='customer'beginwhile @cou<=25 set @filed='addfld'+cast(@cou as varchar(2)) exec('alter table @tableame add cast(@filed as varchar()300) varchar(300)')if(@cou<=25) set @cou=@cou+1else breakend