-->
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.  [ 7 posts ] 
Author Message
 Post subject: SQL server does not support Update
PostPosted: Mon Mar 08, 2004 3:00 am 
Newbie

Joined: Sat Feb 21, 2004 3:02 pm
Posts: 14
hibernate.connection.dialect=net.hibernate.sf.dialect.SQLServerDialect
when i use hilo or native id generator with sqlserver 2003 I see

FOR UPDATE clause allowed only for DECLARE CURSOR."
in hilo generator

this is similar to
http://forum.hibernate.org/viewtopic.ph ... are+cursor
where the user was advised to use SybaseDialect for SQLServer
Is the SQLServer dialect incorrect and is anyone using hilo (or native) generator swith sqlserver???

_________________
Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
425-889-2694
206-384-1340 (cell)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2004 8:47 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I think you need to specify the following parameter to the driver properties:
selectMethod=cursor

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2004 10:49 am 
Newbie

Joined: Sat Feb 21, 2004 3:02 pm
Posts: 14
OK - this is a real newbie question but how and where do I specify the driver properties???

_________________
Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
425-889-2694
206-384-1340 (cell)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2004 2:03 pm 
Newbie

Joined: Wed Feb 04, 2004 10:31 pm
Posts: 10
OK answering my own question d'oh it is in the FAQs that
the property is in the connestion string

http://www.hibernate.org/120.html#A6


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2004 6:40 pm 
Newbie

Joined: Wed Jan 07, 2004 1:56 pm
Posts: 14
What JDBC Drivers are you using (and hence, will this fix work for)?

Are you trying to do a SELECT FOR UPDATE? I am having a similar problem.

-Nick


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 09, 2004 2:19 am 
Newbie

Joined: Sat Feb 21, 2004 3:02 pm
Posts: 14
I am trying everything
native and hilo give
FOR UPDATE clause allowed only for DECLARE CURSOR.
for
net.sourceforge.jtds.jdbc.Driver and
com.microsoft.jdbc.sqlserver.SQLServerDriver
I am not wild about a $800 driver for development as with the jtds
drivern
Does anyone have create working with int keys and SQL server and what do you use???

_________________
Steven M. Lewis PhD
4221 105th Ave NE
Kirkland, WA 98033
425-889-2694
206-384-1340 (cell)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 09, 2004 5:56 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-760


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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.