Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

copy stored procedures

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

636 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