-->
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.  [ 2 posts ] 
Author Message
 Post subject: Removing locks. in SQL server
PostPosted: Mon Dec 22, 2003 12:54 pm 
Regular
Regular

Joined: Fri Sep 05, 2003 12:01 am
Posts: 80
Location: Bogot
Hi all!!

Im using hibernate and sql server with the MS driver and only had one small problem.

Every now and then Im getting locked rows in a table. The locks persist even after shutting down the app server which uses the DB!

Im using transactions templates from the springframework for all write operations.

The problem comes when I try to access the affected row from ODBC. Does anyone know how to remove locks or check how to see them for a particular row?

Thanks in advance..

_________________
Mauricio Hern


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 29, 2003 12:57 pm 
Newbie

Joined: Wed Dec 03, 2003 1:34 pm
Posts: 9
SQL server logs deadlocks in its error logs, but it doesn't do it at row level. There is no way in SQL Server to explicitly end a deadlock (other than bouncing the server ). SQL Server is supposed to clean these up for you. It does this by identifying and timing the deadlocked thread out. You can decrease the deadlock time out period with sp_configure (with the option "query wait").

(BTW: this isn't really a Hibernate question - you might want to try msdn next time)


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

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.