copy stored procedure from one database to another code example
Example: sql copy stored procedures to another server
Go the server in Management Studio.
Select the database, right click on it Go to Task.
Select generate scripts option under Task.
and once its started select the desired stored procedures you want to copy.