Solved

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

Posted on 2013-06-24
2
255 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

830 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