February 10, 2014 at 10:30 am
Hi friends,
I am trying to create a wrapper script for the SQL. I am trying to create a batch file, so that all the sql can be run together and can be directed to a flat file.
will appreciate light to it.
February 11, 2014 at 3:32 am
You'll want to read up on the sqlcmd.exe utility. If you are looking to do things through the command line, it's one method. Another would be to use PowerShell. You can call that through the invoke-sqlcmd commandlet.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy