Solved

copying stored procedure in ms sql 2005 management studio

Posted on 2010-11-30
2
224 Views
Last Modified: 2012-05-10
Hi,
I want to copy a stored procedure in Microsoft SQL Server Management Studio 2005 to make some mods without destroying the original...havnt done this before and was expecting a "copy" option in the sub menu (see pic below)..
my question is what is the easiest way to create an exact duplicate "test" stored procedure...I just want  the same procedure with a new name .
thanks

 spMenu
0
Comment
Question by:blossompark
2 Comments
 
LVL 32

Accepted Solution

by:
Erick37 earned 500 total points
ID: 34240695
Select "Script Stored Procedure As..." then "Create to New Query Window"

Once the script opens, change the name of the procedure in the script and execute.
0
 

Author Closing Comment

by:blossompark
ID: 34241230
Excellent Erick37!! worked a charm! you have saved me a lot of time! can go home now!!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

707 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

16 Experts available now in Live!

Get 1:1 Help Now