Solved

copy stored procedures

Posted on 2003-11-19
5
1,600 Views
Last Modified: 2012-08-13
How do I copy stored procedures from a database to another database
0
Comment
Question by:adekunbi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
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 shrink a transaction log file down to a reasonable size.

734 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