I have recently changed some column data types to make the database more uniform. However I have many corresponding local variables @x
for column x
that was changed in many stored procedures that now do not agree, and have a length or data type mismatch with the column.
I need to make them all uniformly the same as what is in the table. Is there a way of writing a program or some looping alter statement, or a way in SQL Server to do this via the GUI? Otherwise I have to go through by hand and change 250+ stored procedures.
I have to do this for many columns and their respective local variables in the stored procedures and it amount to huge amounts of laborious work that I would rather not do.
Thanks