AR.*_*AR. 37 sql sql-server suppress-warnings
是否可以抑制T-SQL脚本生成的警告?如果是这样,怎么样?
我知道我可以用'转换'受影响的记录'的消息
SET NOCOUNT ON
Run Code Online (Sandbox Code Playgroud)
但有警告的等价物吗?例如:
Warning: Null value is eliminated by an aggregate or other SET operation.
Run Code Online (Sandbox Code Playgroud)
如果我期待这些错误,它有助于从大脚本中筛选真实错误.
谢谢.
Rem*_*anu 46
请参见SET ANSI_WARNINGS {ON | OFF}