Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
ferrethouse
Constraint Violating Yak Guru
352 Posts |
Posted - 2012-09-11 : 12:58:31
|
If I run...DBCC USEROPTIONSI get...isolation level read committed snapshotBut If I turn on profiler I see this for SELECT statements...-- network protocol: TCP/IPset quoted_identifier onset arithabort offset numeric_roundabort offset ansi_warnings onset ansi_padding onset ansi_nulls onset concat_null_yields_null onset cursor_close_on_commit offset implicit_transactions offset language us_englishset dateformat mdyset datefirst 7set transaction isolation level read committedIs profiler just not reporting the "SNAPSHOT" part or is it actually not running in snapshot mode?The reason I ask is because I am experiencing a decent amount of blocking caused by SELECT statements. |
|
chadmat
The Chadinator
1974 Posts |
Posted - 2012-09-11 : 14:05:39
|
From BOL:"DBCC USEROPTIONS reports an isolation level of 'read committed snapshot' when the database option READ_COMMITTED_SNAPSHOT is set to ON and the transaction isolation level is set to 'read committed'. The actual isolation level is read committed."-Chad |
|
|
ferrethouse
Constraint Violating Yak Guru
352 Posts |
Posted - 2012-09-11 : 14:14:31
|
quote: Originally posted by chadmat From BOL:"DBCC USEROPTIONS reports an isolation level of 'read committed snapshot' when the database option READ_COMMITTED_SNAPSHOT is set to ON and the transaction isolation level is set to 'read committed'. The actual isolation level is read committed."-Chad
So profiler is probably just not reporting the SNAPSHOT setting. That's what I suspected. I'm struggling to figure out why I'm getting SELECT locks if I'm in READ COMMITTED SNAPSHOT isolation level. |
|
|
ferrethouse
Constraint Violating Yak Guru
352 Posts |
Posted - 2012-09-11 : 14:19:09
|
I may have just found my answer but am thoroughly confused now.DBCC UserOptions gives READ COMMITTED SNAPSHOTBut if I run...SELECT snapshot_isolation_state_desc from sys.databases where name='mydb'I get... OFFBut read_committed_snapshot_on has a value of 1Urg. |
|
|
chadmat
The Chadinator
1974 Posts |
Posted - 2012-09-11 : 14:27:26
|
sys.databases is reporting ALLOW_SNAPSHOT_ISOLATION is off, which is different than READ_COMMITTED_SNAPSHOT http://msdn.microsoft.com/en-us/library/ms175095(v=SQL.105).aspx-Chad |
|
|
|
|
|