活动
DBCC USEROPTIONS (Transact-SQL)
适用于:SQL Server
Azure SQL 数据库
Azure SQL 托管实例
返回当前连接的活动(设置)的 SET 选项。
syntaxsql
DBCC USEROPTIONS
[ WITH NO_INFOMSGS ]
取消严重级别从 0 到 10 的所有信息性消息。
DBCC USEROPTIONS
返回 SET 选项的名称列和该选项的值列(值和项可能会变化):
输出
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.
当数据库选项 DBCC USEROPTIONS
设置为 ON 且事务隔离级别设置为 read committed snapshot
时,READ_COMMITTED_SNAPSHOT
报告隔离级别 read committed
。 实际的隔离级别是已提交读。
要求 公共 角色具有成员身份。
以下示例返回当前连接的活动 SET 选项。
SQL
DBCC USEROPTIONS;