SQL Server- View Current Isolation Level

To view the current isolation level of SQL Server, execute the script below.

 

SELECT​​ 

CASE​​ transaction_isolation_level​​ 

WHEN​​ 0​​ THEN​​ 'Unspecified'​​ 

WHEN​​ 1​​ THEN​​ 'ReadUncommitted'​​ 

WHEN​​ 2​​ THEN​​ 'ReadCommitted'​​ 

WHEN​​ 3​​ THEN​​ 'Repeatable'​​ 

WHEN​​ 4​​ THEN​​ 'Serializable'​​ 

WHEN​​ 5​​ THEN​​ 'Snapshot'​​ 

END​​ AS​​ TRANSACTION_ISOLATION_LEVEL​​ 

FROM​​ 

sys.dm_exec_sessions​​ 

WHERE​​ 

session_id​​ =​​ @@SPID

 

 

 

Knowledge worth sharing...Share on linkedin
Linkedin
Share on facebook
Facebook
Share on google
Google
Share on twitter
Twitter
Bookmark the permalink.

Leave a Reply

Leave a Reply

Your email address will not be published. Required fields are marked *