[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

copying stored procedure in ms sql 2005 management studio

Posted on 2010-11-30
2
Medium Priority
?
257 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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

834 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