0

在 SQL Server 中,我正在编写一个触发器,该触发器在其实现内部改变一个标志,如下所示

 SET ANSI_NULLS OFF

这种变化的范围是什么?触发器、事务、连接、X?

4

1 回答 1

1

您可能想看看SET ANSI_WARNINGS OFF 的范围

另外,请注意规范声明该语法将被弃用http://msdn.microsoft.com/en-us/library/ms188048.aspx

In a future version of SQL Server, ANSI_NULLS will always be ON and any applications that explicitly set the option to OFF will generate an error. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

于 2013-03-18T07:08:53.290 回答