These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Locking/isolation level best practice
PostPosted: Fri May 08, 2009 7:46 pm 
Newbie

Joined: Wed Oct 08, 2008 10:11 am
Posts: 3
My current application has 2 processes which both use the same MS SQL Server database. Once in a while, one of them throws an exception since the other locked some rows it tried to use. Reading (select) rows causes them to get locked too.

The default isolation level is ReadCommited, but I was wondering what the best practice or guideline is regarding this topic? I can't imagine lowering the isolation level to ReadUncommited for instance to "solve" this issue is a good practice? Since it doesn't really solve the issue at the core.

I thought I read somewhere MS SQL Server would wait a while when it tried to use rows which have been locked, but apparently this isn't the case. Is there someway to enable this waiting-behaviour?

Thanks,
Yannick


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.