Home > Microsoft .Net Development Tips > Microsoft SQL Server > Check the isolation level of any SPID
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

MICROSOFT SQL SERVER

Check the isolation level of any SPID


Paul Wehland
08.28.2003
Rating: -5.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


By default, each SQL Server 2000 (I'm using SP3a) SPID has a Transaction Isolation Level of 'READ COMMITTED'. You can easily check your own Transaction Isolation level by executing DBCC USEROPTIONS. You will see isolation level in the set option column, and its current setting in the Value column. This will show up only if you execute SET TRANSACTION ISOLATION LEVEL 'nnn'. If you do not see this row, then you are running at the default isolation level of READ COMMITTED. DBCC USEROPTIONS is good only for your own spid.

But now you ask, how do I check the isolation level of other users (other SPIDs)? Sorry, DBCC USEROPTIONS cannot do this. The way aound this is to use the undocumented DBCC PSS command. You will need to turn on traceflag 3604 to see the results of DBCC PSS. The parameters are uid, spid.

After executing this, look for isolation_level in the text. The values for this are: There you have it, with these commands you will be able to check the isolation level of any SPID on your Microsoft SQL Server.

For More Information


Rate this Tip
To rate tips, you must be a member of SearchWinDevelopment.com.
Register now to start rating these tips. Log in if you are already a member.




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Database Programming Solutions - .NET XML, Visual Studio LINQ, ORM .NET
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts