Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Viewing Current Trasaction Isolation Level

Status
Not open for further replies.

Kenjan

Programmer
Mar 4, 2003
13
US
Does anyone know how to see what the current Transaction Isolation Level is set to?
 
The level of isolation is actually customizable for each transaction not for database. The default of course is Read Committed

Thanks

J. Kusch
 
Sorry ... Let it loose before I was done ... Here is the syntax to find out what the current isolation level is :

SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
GO
DBCC USEROPTIONS
GO



Thanks

J. Kusch
 
I saw this somewhere, but was confused. Doesn't the command 'SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED' set the isolation level? I was afraid that DBCC USEROPTIONS would just show me what I set in the command before.

 
Yes it does set the isolation level. It is being used as an example. Once again, the level of isolation is actually customizable for each transaction not for database. So when you set the ISO level for the transaction you are working with, you can view what the ISO level was for that transaction by executing the DBCC command. Sorry for not being clearer on the code.

Thanks

J. Kusch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top