Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 How to copy multiple stored procs

Author  Topic 

cplusplus
Aged Yak Warrior

567 Posts

Posted - 2008-05-29 : 15:15:09
I would like to copy the following 3 stored procedures from Database1 to database2 on the same server:

USP_UpdateDocRepository

USP_GetUA

USP_GetCN

Is there a copy command available via query window.

Thanks.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-05-29 : 15:28:39
No, just generate the script from Management Studio and run it in the other database.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Database maintenance routines:
http://weblogs.sqlteam.com/tarad/archive/2004/07/02/1705.aspx
Go to Top of Page
   

- Advertisement -