Solved

copy stored procedures

Posted on 2003-11-19
5
1,590 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
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.

746 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

12 Experts available now in Live!

Get 1:1 Help Now