Can you tell me how to copy stored procedures (16155) from one database to another on the same SQL Server 2005?
On SQL Server 2005, you can choose to script the stored procedures. Right click the database, then Tasks → Generate Scripts. Step your way through the wizard until you get to the option to select object types and just choose Stored Procedures. On the last page of the wizard, you can choose to send the script to a new query window. You'll need to change the database name at the top of the script and execute it against the other database.
Dig deeper on Microsoft SQL Server 2005
Related Q&A from Greg Low
If you're working with SQL Server 2000 and trying to find a disabled index, here's something you should know.continue reading
Find how to query in SQL Server to get all database names created by users.continue reading
Find how to save stored procedure output to the network drive via SQL Server Management Studio.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.