Link to home
Start Free TrialLog in
Avatar of zachvaldez
zachvaldezFlag for United States of America

asked on

How to copy all stored procedure from one server to another.

What is the script to copy all sp frm 1 server to other?
Avatar of dave_tiller
dave_tiller
Flag of United States of America image

In Management Studio, you can copy stored procedures between databases. However, as far as instance to instance, I don't think it is possible.  You would have to right click the stored procedure, script stored procedure as, create to, and either file or new query window.  Then copy that to the new instance and add the stored procedure.

Stored Procedures are more of a database specific thing.  Are you talking about a DMV?
ASKER CERTIFIED SOLUTION
Avatar of tim_cs
tim_cs
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zachvaldez

ASKER

that worked!