SET Statements#
The Transact-SQL programming language provides several SET statements that change the current session handling of specific information. The SET statements are grouped into the categories shown in the following table.
Category |
Statements |
Compatibility and support |
|---|---|---|
Date and time statements |
Always uses Sunday as the first day of the week. |
|
Sets the order of the month, day, and year date parts for interpreting dates. |
||
Locking statements |
Supported only by parser and does not change the default settings. |
|
Supported only by parser and does not change the default settings. |
||
Miscellaneous statements |
Supported only by parser and does not change the default settings. |
|
Supported only by parser and does not change the default settings. |
||
SET FIPS_FLAGGER |
Not supported. |
|
SET IDENTITY_INSERT |
Not supported. |
|
Only us_english is supported. |
||
SET OFFSETS |
Not supported. |
|
Supported only by parser. Always ‘ON’. |
||
Query Execution Statements |
Supported only by parser. Always ‘ON’. |
|
Supported only by parser. Always ‘ON’. |
||
Supported. Returns result set metadata only; no source scan. |
||
Supported only by parser. Always ‘ON’. |
||
Supported only by parser. Always ‘OFF’. |
||
Supported only by parser. Always ‘ON’. |
||
Supported only by parser. Always ‘OFF’. |
||
Supported only by parser. Value ignored. |
||
Supported only by parser. Value ignored. |
||
Supported only by parser. Value ignored. |
||
ISO Settings statements |
SET ANSI_DEFAULTS |
Not supported. |
SET ANSI_NULL_DFLT_OFF |
Not supported. |
|
SET ANSI_NULL_DFLT_ON |
Not supported. |
|
Supported only by parser. Value ignored. |
||
Supported only by parser. Value ignored. |
||
Statistics statements |
SET FORCEPLAN |
Not supported. |
Supported only by parser. Always ‘OFF’. |
||
Supported only by parser. Always ‘OFF’. |
||
Supported only by parser. Always ‘OFF’. |
||
Supported only by parser. Always ‘OFF’. |
||
Supported only by parser. Always ‘OFF’. |
||
Supported only by parser. Always ‘OFF’. |
||
Supported only by parser. Always ‘OFF’. |
||
Transactions statements |
Supported only by parser. Always ‘OFF’. |
|
SET REMOTE_PROC_TRANSACTIONS |
Not supported. |
|
Supported only by parser. Value ignored. |
||
SET XACT_ABORT |
Not supported. |
|
Querona-specific |
Folds constant expressions during query typing. |
|
Runs no-FROM SELECTs on the in-memory engine. |
||
Runs the default (external) federation push-down step. |
||
Extracts in-memory expressions into session variables. |
||
Streams Apache Spark results instead of collecting them. |
||
Uses the in-memory engine to federate across sources. |
||
Treats every SELECT as if FOR BROWSE were appended. |
||
Pushes filter predicates down into the source queries. |
||
Pushes a federated query to the source holding most data. |