Alex Rivera | Logout

How to check the isolation level of another connection SQL Server 2008

Asked 2012-06-12T12:56:46.173
9

I need to see the isolation level of all the current connections to find some locking issue.

I tried DBCC Useroptions but it gives me info only for my user.

I tried DBCC PSS(0) or DBCC PSS(1,57) But I get the following error:

Incorrect DBCC statement. Check the documentation for the correct DBCC syntax and options.

Edit
Report

1 Answer

19
SELECT CASE transaction_isolation_level 
                        WHEN 0 THEN 'Unspecified' 
                        WHEN 1 THEN 'ReadUncomitted' 
                        WHEN 2 THEN 'Readcomitted' 
                        WHEN 3 THEN 'Repeatable' 
                        WHEN 4 THEN 'Serializable' 
                        WHEN 5 THEN 'Snapshot' 
                  END 
FROM sys.dm_exec_sessions 
WHERE session_id = <spid_of_other_session>
answered 2012-06-12T13:02:34.927

Your Answer