How to detect READ_COMMITTED_SNAPSHOT is enabled?

后端 未结 3 743
醉话见心
醉话见心 2020-12-22 16:35

In MS SQL Server is there a way to detect whether a database has had its isolation level set via the T-SQL command ALTER DATABASE SET READ_COMMITTED_S

3条回答
  •  长情又很酷
    2020-12-22 17:36

    Neither on SQL2005 nor 2012 does DBCC USEROPTIONS show is_read_committed_snapshot_on:

    Set Option  Value
    textsize    2147483647
    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
    

提交回复
热议问题