Solved

Copy a SQL routine into an existing SQL DB as Store Procedure

Posted on 2013-06-24
2
253 Views
Last Modified: 2013-06-24
I have a SQL routine that has been written by someone else.  I want to copy the SQL file into an existing DB as a Store Procedure to run.  It will create a list of new tables and reports to be used in the DB.

How do I do this?

Thanks

Glen
0
Comment
Question by:GPSPOW
2 Comments
 
LVL 23

Accepted Solution

by:
Racim BOUDJAKDJI earned 500 total points
ID: 39272894
Simply use SSMS and copy and paste the script into the query window and run it.
0
 

Author Closing Comment

by:GPSPOW
ID: 39273278
Thank you
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help Required 3 96
Query Syntax 17 34
create an aggregate function 9 34
SQL Query assistance 16 25
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…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

773 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