Search notes:

SQL Server - SET statement

The set statement can be used to assign a value to a variable or to set/unset a boolean-like option that changes how a session handles different things. The options that are altered with set affect the current session only.

On / off options

The set statement can be used to set boolean like options to on or unset off (such as nocount).
Wich options are set is stored in the @@options variable.

ansi_nulls

TODO: ansi_nulls

ansi_warnings

TODO: gone here

language

set language sets the session language.

nocount

set nocount on turns off messages like 42 row(s) affected:
set nocount on;
update tab_one set col_1 = 'xyz' where col_2 < 'abc';
Apparently, a construct such as set count off is not easily possible because count is already an SQL keyword.

noexec

set noexec on|off controls if the following T-SQL statements are executed or parsed only.

quoted_identifier

TODO: quoted_identifier

See also

showplan_all, showplan_text or showplan_xml
stop executing the current block when an error occurs with set xact_abort on.
Database level options
T-SQL statements
Global configuration settings can be altered with the sp_configure procedure.

Index