Check Isolation Level of a Database | DBCC USEROPTIONS
While testing a functionality we had to run some Stored Procedures in parallel. So we executed all 4 SPs in different Sessions (separate windows). All SPs got executed successfully except one, this one ended up in a Deadlock.
I thought to check the Isolation level of database but my mind didn’t clicked instantly.
So I checked MS BOL about this and find the DBCC management command to find it, which is DBCC USEROPTIONS & as follows:
USE [AdventureWorks2012] GO DBCC USEROPTIONS GO
Output:- Set Option Value textsize 2147483647 language us_english dateformat mdy datefirst 7 lock_timeout -1 quoted_identifier SET arithabort SET ansi_null_dflt_on SET ansi_warnings SET ansi_padding SET ansi_nulls SET concat_null_yields_null SET isolation level read committed
Other Isolation level values it returns are:-
- read uncommitted
- read committed
- repeatable read
- serializable
- read committed snapshot
- snapshot
The sys.databases metadata View also contains a column i.e. is_read_committed_snapshot_on, which tells if READ_COMMITTED_SNAPSHOT Isolation level in ON or OFF.
Check this:
select is_read_committed_snapshot_on, * from sys.databases
Leave a Reply Cancel reply
Download Win8 APP for SQLwithManoj HERE
SQL Tags
Categories
- BIDS (1)
- Datatypes (3)
- DB Concepts (19)
- DBA Task (14)
- Differences (21)
- Excel (6)
- Indexes (3)
- Integration Services (4)
- Interview Questions (6)
- JOINS (4)
- Microsoft (5)
- Misconception (1)
- MS SQL SERVER 2005 (8)
- MS SQL SERVER 2008 (8)
- MS SQL Server Denali (23)
- MS.net (1)
- New Features (4)
- Optimization Performance (8)
- SQL DB Engine (1)
- SQL Errors (4)
- SQL Tips (47)
- Stored Procedures (9)
- tempdb (3)
- Uncategorized (6)
- VBA Macro (1)
- web apps (1)
- Windows (1)
- XML (13)
Archives
- May 2013 (2)
- April 2013 (2)
- February 2013 (2)
- January 2013 (2)
- December 2012 (4)
- November 2012 (3)
- October 2012 (3)
- September 2012 (5)
- August 2012 (1)
- July 2012 (5)
- June 2012 (1)
- May 2012 (4)
- April 2012 (7)
- March 2012 (1)
- February 2012 (2)
- January 2012 (3)
- December 2011 (11)
- November 2011 (1)
- October 2011 (6)
- September 2011 (3)
- August 2011 (2)
- July 2011 (12)
- June 2011 (2)
- May 2011 (3)
- April 2011 (1)
- March 2011 (5)
- February 2011 (9)
- January 2011 (7)
- December 2010 (9)
- November 2010 (6)
- October 2010 (4)
- September 2010 (3)
- August 2010 (3)
- July 2010 (1)
- June 2010 (1)
- May 2010 (1)
- March 2010 (1)
- February 2010 (1)
- January 2010 (1)
- December 2009 (1)
- November 2009 (1)
- September 2009 (2)
- August 2009 (1)
- April 2009 (2)
- March 2009 (2)
- February 2009 (3)
Top Posts
- Passed 70-461 Exam : Querying Microsoft SQL Server 2012
- Using OUTPUT Parameters in Stored Procedures
- TSQL Interview Questions - Part 1
- Logging in SSIS... using SQL Server Log Provider
- BCP { IN | OUT | QUERYOUT } - the BCP util
- Difference between TRUNCATE, DELETE and DROP?
- more examples on querying XML ...with CROSS APPLY & XQuery
- CTE Recursion | Sequence, Dates, Factorial, Fibonacci series
- DYNAMIC PIVOT
- SELECT an XML string to a table
Top Rated
Blog Stats
- 346,149 hits
StatCounter …since April’2012
Disclaimer
This is my personal blog site.
The opinions expressed here represent my own and not those of my employer. For accuracy and official reference refer to MS Books On Line and/or MSDN/TechNet.
My employer do not endorse any tools, applications, books, or concepts mentioned on the blog. I have documented my personal experience on this blog.



