Quantcast
Channel: Answers for "Running SQL scripts in a batch file"
Browsing latest articles
Browse All 4 View Live

Answer by TimothyAWiseman

If you meant a DOS batch file, then on failure you can use an EXIT command to terminate the script when you no longer wish it to reach the export step. There are details here:...

View Article



Answer by SQLDBA123

DOS Windows Batch script Example: SQLCMD -S ServerName -E -b -i "D:\Test.sql" if errorleve 1 ( Echo Error in scripts goto outerror1 ) :outerror1 ECHO Batch job not ran successfully EXIT 1 Echo Job ran...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images