Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

Please provide me a quick solution ...........

I am using SQL Server Database for a application in which a database has more then 100 store procedure now I need to add one parameter into all the store procedure.

I want a SqlServer Query, I don't want to go one by one.

Please provide ASAP.Its urgent.

Thanks
Posted

1 solution

I am not sure the purpose of the act that you intend to do. Even if you manage to add a parameter to any stored procedure, you need to use that parameter in some kind of logic being carried out by the Stored Procedure and since all SP will have different functionality, you will HAVE to do that manually !

But, considering you have some valid and well-thought reasoning behind doing what you intend to do, try to follow
http://stackoverflow.com/questions/4367184/sql-script-to-change-all-table-references-in-all-stored-procedures[^]

This should serve the purpose. But do pay attention to warnings given by Solution providers there.

Hope that helps

Milind
 
Share this answer
 
Comments
__TR__ 13-Dec-12 9:01am    
My 5!
MT_ 14-Dec-12 0:52am    
Thanks :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900