Question : Can I write a script to generate another script

Hello,

I am trying to keep two database structures in sync.  I make changes in my test database, test them etc, and then run a script on the live database.

I would like to keep a list of stored procedures names, and when I am ready to update the live database, run this as a script that then generates the script I can use to alter the second database.

Hope I have made that clear.

Answer : Can I write a script to generate another script

you can have script of function and SP by its name. look at the blog link below:

http://www.sqlhub.com/2010/05/generate-sp-or-function-definition-in.html
Random Solutions  
 
programming4us programming4us