Solved

Copy Stored Procedures from one database to another

Posted on 2003-12-06
2
904 Views
Last Modified: 2008-03-10
I have got to be overlooking something... Surely it can't be that difficult to copy stored procedures and views from one database to another on the same server.  Seems strange that I can right-mouse click and select copy, but when I move down to the other database there isn't any "Paste" option.
I am working on SQL Server 2000. I don't want to move tables, just SP, Views, And Functions.  What is the EASIST way to do this?
0
Comment
Question by:Mach1pro
2 Comments
 
LVL 4

Expert Comment

by:dasari
ID: 9890566
When u right click on it and select copy, it copies the script of the sp to clipboard.......

get all the scripts and paste them into a file, then execute the script in the query analyzer.....

Lemme know how it went buddy!

HTH



0
 
LVL 34

Accepted Solution

by:
arbert earned 250 total points
ID: 9890577
Why right click on each sp one by one?????  Right click on the database and choose generate scripts--you can choose all of your SPs and Views at once.

Another method, use DTS copy database wizard to choose the objects you want....

Brett
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

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…
I have a large data set and a SSIS package. How can I load this file in multi threading?
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 documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.

856 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