Partilhar via


DBCC USEROPTIONS (Transact-SQL)

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

Topic link iconTransact-SQL Syntax Conventions

Syntax

DBCC USEROPTIONS
[ WITH NO_INFOMSGS ]

Arguments

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

Result Sets

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
ansi_null_dflt_on            SET
ansi_warnings                SET
ansi_padding                 SET
ansi_nulls                   SET
concat_null_yields_null      SET

(9 row(s) affected)

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

Permissions

Requires membership in the public role.

Examples

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

DBCC USEROPTIONS;

See Also

Reference

DBCC (Transact-SQL)
SET (Transact-SQL)
SET TRANSACTION ISOLATION LEVEL (Transact-SQL)

Other Resources

Customizing Transaction Isolation Level

Help and Information

Getting SQL Server 2005 Assistance