Click to Rate and Give Feedback
MSDN
MSDN Library
SQL Server
SQL Server 2008
Database Engine
Technical Reference
DBCC (Transact-SQL)
 DBCC USEROPTIONS (Transact-SQL)
Community Content
In this section
Statistics Annotations (0)
Collapse All/Expand All Collapse All
Other versions are also available for the following:
SQL Server 2008 Books Online (October 2009)
DBCC USEROPTIONS (Transact-SQL)

Returns the SET options active (set) for the current connection.

Topic link icon Transact-SQL Syntax Conventions

DBCC USEROPTIONS
[ WITH NO_INFOMSGS ]
NO_INFOMSGS

Suppresses all informational messages that have severity levels from 0 through 10.

DBCC USEROPTIONS returns a column for the name of the SET option and a column for the value of the option (values and entries may vary):

Set Option                   Value

---------------------------- ---------------------------

textsize                     64512

language                     us_english

dateformat                   mdy

datefirst                    7

lock_timeout                 -1

quoted_identifier            SET

arithabort                   SET

ansi_null_dflt_on            SET

ansi_warnings                SET

ansi_padding                 SET

ansi_nulls                   SET

concat_null_yields_null      SET

isolation level              read committed

(13 row(s) affected)

DBCC execution completed. If DBCC printed error messages, contact your system administrator.

Permissions

DBCC USEROPTIONS reports an isolation level of 'read committed snapshot' when the database option READ_COMMITTED_SNAPSHOT is set to ON and the transaction isolation level is set to 'read committed'. The actual isolation level is read committed.

Requires membership in the public role.

The following example returns the active SET options for the current connection.

DBCC USEROPTIONS;
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker