Solved

SQL 2005 scripts

Posted on 2012-03-20
2
154 Views
Last Modified: 2012-08-13
I have many saved SQL scripts.  Is there a way to tell SQL look in this directory and run all the scripts in the directory one after the other?  If not, is there anything close to accomplishing the task of firing off dozens of scripts that are all saved as individual *.sql files?
0
Comment
Question by:dastaub
2 Comments
 
LVL 25

Accepted Solution

by:
jogos earned 250 total points
ID: 37744031
Sqlcmd utility
http://msdn.microsoft.com/en-us/library/ms170207.aspx

And then have a script that calls all scripts

:r script1.sql
:r script2.sql
0
 
LVL 20

Assisted Solution

by:BuggyCoder
BuggyCoder earned 250 total points
ID: 37744067
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
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 …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

19 Experts available now in Live!

Get 1:1 Help Now