Sql-server – Move stored procedures from one database to another in SQL Server

scriptingsql server

I'm using SQL Server 2008, and I would like to copy stored procedures from one database to another. How?

Best Answer

Right click on the SP under the DB and click Script Stored Procedure As > CREATE To > File, it will create an SQL script file, then run that script on the other database.