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 ArticleAnswer 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
More Pages to Explore .....