?
Solved

copy stored procedures

Posted on 2003-11-19
5
Medium Priority
?
1,604 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 500 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 500 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

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…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
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.
Suggested Courses

770 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