ANSI_NULLS or QUOTED_IDENTIFIER is turned off, which is deprecated and changes comparisons

tx0/sql:ansi-nulls-offrecommendedwarningreliability/logicdepth fastbug

What it finds

SET ANSI_NULLS OFF makes = NULL true for NULL values, against the standard. The setting is deprecated, later versions of SQL Server will not support it, and code that relies on it behaves differently wherever the setting differs. SET QUOTED_IDENTIFIER OFF is deprecated in the same way, and both break indexed views and filtered indexes.

From the rule's source, ansi_nulls_off.rs.

Turn it on, off or suppress it

The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/sql:ansi-nulls-off" = "warning"

To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.

tx0 explain tx0/sql:ansi-nulls-off shows the same in the terminal. Found a false positive? Report it.