copying the existing store procedure in sql server 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.