How to detect READ_COMMITTED_SNAPSHOT is enabled?

后端 未结 3 737
醉话见心
醉话见心 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:35

    1. As per https://msdn.microsoft.com/en-us/library/ms180065.aspx, "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."

    2. Also in SQL Server Management Studio, in database properties under Options->Miscellaneous there is "Is Read Committed Snapshot On" option status

提交回复
热议问题