Quantcast
Channel: Sql Server 2008 R2 – MSSQLFUN – Microsoft SQL Server, Database, Replication, SQL Server Agent, Mirroring, Always On, HADR
Viewing all articles
Browse latest Browse all 48

How to find current/particular transaction level?

$
0
0
There is 2 ways of finding current / particular transaction level :- 1) 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 AS TRANSACTION_ISOLATION_LEVEL FROM sys.dm_exec_sessions where session_id = @@SPID 2) DECLARE @UserOptions TABLE(SetOption varchar(100), Value … Continue reading

Viewing all articles
Browse latest Browse all 48

Trending Articles