?
Solved

copying stored procedure in ms sql 2005 management studio

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

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

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

There are some very powerful Dynamic Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a di…
When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

752 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