Some times we need to copy a store procedure from one database to another. then we have to follow the following steps:
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.
It's important that when you execute the store procedure just rename the database name.
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.
It's important that when you execute the store procedure just rename the database name.
Comments
Post a Comment