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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1740470452, '3.12.196.93', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/SQL-Server/T-SQL/statements/set/index(91): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78