Solved

copy stored procedures

Posted on 2003-11-19
5
1,593 Views
Last Modified: 2012-08-13
How do I copy stored procedures from a database to another database
0
Comment
Question by:adekunbi
5 Comments
 
LVL 29

Accepted Solution

by:
Nightman earned 125 total points
ID: 9777529
In SQL Enterprise Manager, expand the stored procedures node and select all the stored procs. Right click, select ALL TASKS and Generate SQL Script.

Click OK - this will export them to a SQL file. Run the SQL file in Query Analyser against your other database.

Cheers
Night
0
 

Assisted Solution

by:MrDeveloper
MrDeveloper earned 125 total points
ID: 9852856
Another way would be to use all tasks/export data/copy objects and data.  Uncheck "COPY ALL OBJECTS" in the next window, then click the select objects button.  You can toggle off tables, etc. depending on what you want to bring over.  This works great for tables btw
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now