-->
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: SQL Hints .. How is this done ?
PostPosted: Wed Dec 13, 2006 12:54 pm 
Beginner
Beginner

Joined: Wed Sep 13, 2006 7:24 am
Posts: 26
I have a busy table in the database, and i need to change the Select statment to include a Locking Statement.

example

Code:
SELECT * FROM PAYMENTS WITH (NOLOCK)


How would this be done.

I would also want to do Dirty Reads from the database.

_________________
Ben


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 13, 2006 2:05 pm 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
Maybe try and using the custom sql, for loading here, feature : http://www.hibernate.org/hib_docs/v3/re ... rysql-load

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


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.