Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Need help with copy stored procedure from one database to another

$
0
0

Hi.  I have 2 databases which have the same table structures but one database doesn't have any stored procedures.  The database without the stored procedures will be used for archiving data only.  I have this requirement that when I backup the archive database that I have to copy a some of the stored procedures from the other database before the backup process. 

 

Is there a way to copy stored procedures from one database to another database using TSQL?

 

Thanks,

 

Rick..


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>