Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Verify if SNAPSHOT isolation level is on in SQL Server 2008 R2

What SQL will I execute in SSMS for SQL Server 2008 R2 to know if SNAPSHOT isolation level is turned on in the database?

like image 376
Sunil Avatar asked Aug 21 '14 14:08

Sunil


People also ask

How can I check the status of a SQL Server snapshot?

Using SQL Server Management StudioIn Object Explorer, connect to the instance of the SQL Server Database Engine and then expand that instance. Expand Databases. Expand Database Snapshots, and select the snapshot you want to view.

How do you check if Read_committed_snapshot is on or off?

Below SQL Server DB level query can be used to check whether read_committed_snapshot is ON/OFF: SELECT IS_READ_COMMITTED_SNAPSHOT_ON FROM SYS.


1 Answers

SELECT snapshot_isolation_state_desc from sys.databases 
where name='<your database name here>'

will allow you to check if it is turned on or not.

like image 71
David Brabant Avatar answered Oct 18 '22 19:10

David Brabant