copy all the stored procedures and table from 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.