Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

How to make sqlcmd return an exit value other than 0 when the .sql script fails?

$
0
0

I'm running sqlcmd from a batch file and I was wondering how to make it return an ERRORLEVEL other than 0 when it fails.


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>