It also sets the default dos errorlevel value to - 1 同时还将dos errorlevel的默认值设置为- 1 。
Exits and returns a dos errorlevel value when an error occurs 退出并返回一个dos errorlevel值。
Errorlevel : lists the error code of the most recently used command 列出了最近使用的命令的错误代码。
Microsoft ms - dos batch files can test the value of dos errorlevel and handle the error appropriately Microsoft ms - dos批处理文件可以测试dos errorlevel的值,并进行适当的处理。
This is referred to as clean output . clean output improves the processing performance of scripting languages 如果sqlcmd脚本包含错误的注释、语法错误或缺少脚本变量,则返回的errorlevel为1 。
The value returned to the dos errorlevel variable is 1 when the sql server error message has a severity of 11 or greater ; otherwise , the value returned is 0 如果sql server错误消息的严重级别为11或更高, dos errorlevel变量返回的值为1 ;否则,返回的值为0 。