views:

60

answers:

2

I just copied my current database to a new database to find out only the tables are copied, How do I copy all stored procs the same way in one go? I do not want to create each stored proc one by one again running create queries

Thank you in advance

This is in MS SQL

+5  A: 
  1. Use management studio
  2. Right click on the name of your database
  3. Select all tasks
  4. Select generate scripts
  5. Follow the wizard, opting to only script stored procedures
  6. Take the script it generates and run it on your new database
CResults
Thanks a lot,it worked
LSB
No problem. Can you tick my answer to show others it worked? :-)
CResults
A: 

Maybe this can help you:

http://www.eggheadcafe.com/articles/20030609.asp

JeremySpouken