
Inline adoc files when they are included exactly once. Also fix language tags because this inlining gives us better information on what language the code is written in.
39 lines
913 B
Plaintext
39 lines
913 B
Plaintext
== Why is this an issue?
|
|
|
|
Changing the configuration of database options ``++ANSI_NULLS++``, ``++ANSI_PADDING++`` and ``++CONCAT_NULL_YIELDS_NULL++`` is deprecated. The future versions of SQL Server will only support the ``++ON++`` value, and the ``++SET++`` statement for those options to ``++OFF++`` will eventually generate an error.
|
|
|
|
|
|
=== Noncompliant code example
|
|
|
|
[source,sql]
|
|
----
|
|
SET ANSI_NULLS OFF -- Noncompliant
|
|
SELECT column1 FROM table1 WHERE id = NULL
|
|
|
|
SET ANSI_PADDING OFF -- Noncompliant
|
|
SET CONCAT_NULL_YIELDS_NULL ON -- Noncompliant
|
|
|
|
SET ANSI_PADDING ON -- "ON" is ignored
|
|
----
|
|
|
|
|
|
=== Compliant solution
|
|
|
|
[source,sql]
|
|
----
|
|
SELECT column1 FROM table1 WHERE id IS NULL
|
|
----
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
=== Message
|
|
|
|
Remove this use of "[ANSI_NULLS|ANSI_PADDING|CONCAT_NULL_YIELDS_NULL]".
|
|
|
|
|
|
endif::env-github,rspecator-view[]
|