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..