Using Options in SQL Server

Microsoft® SQL Server™ provides options that affect the result and performance of SQL statements. Transact-SQL allows you to set these options in the following ways: 

ODBC applications can specify connection options that control some of the ANSI SET options. The Microsoft OLE DB Provider for SQL Server and SQL Server ODBC driver both set several SET options by default. Options can also be set using the SQL Server Enterprise Manager.

Hierarchy of Options

When an option is supported at more than one level:

  1. A database option overrides a server option.
  2. A SET option overrides a database option.
  3. A hint overrides a SET option.

Note sp_configure provides the option user options, which allows you to change the default values of several SET options. Although user options appears to be a server option, it is a SET option.


  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.