-->
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.  [ 11 posts ] 
Author Message
 Post subject: Hibernate and Sql Server
PostPosted: Wed May 12, 2004 3:10 pm 
Newbie

Joined: Wed May 12, 2004 2:57 pm
Posts: 17
Hi all,

I am about to start a new project and am considering using Hibernate with Sql Server 2000. Can someone who has used that combination tell me if it's a good choice?

I know there are glitches with Sql Server and certain JDBC drivers, but I am not sure how well Hibernate performs with Sql Server. Anything I should know?

Thank you all in advance
LS


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 3:11 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
It's a good combination, use the jTDS driver.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 3:21 pm 
Newbie

Joined: Wed May 12, 2004 2:57 pm
Posts: 17
Thank you.

Just out of curiosity. For best performance on a large scale application, which DB server would you recommend? Say, would Oracle or DB2 work faster/smoother than Sql Server, when being used with Hibernate?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 3:22 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
There are too many variables to answer that question. "It depends" is the correct answer :) You will have different problems with all of them, but they are equally well supported by Hibernate.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 3:25 pm 
Newbie

Joined: Wed May 12, 2004 2:57 pm
Posts: 17
christian wrote:
There are too many variables to answer that question. "It depends" is the correct answer :) You will have different problems with all of them, but they are equally well supported by Hibernate.


That's all I wanted to know. :) Thanks again.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 3:39 pm 
Newbie

Joined: Wed May 12, 2004 2:57 pm
Posts: 17
christian wrote:
It's a good combination, use the jTDS driver.

Hi,

I just found this in hibernate.properties file
## jTDS (not supported!)
#hibernate.connection.driver_class net.sourceforge.jtds.jdbc.Driver
#hibernate.connection.url jdbc:jtds:sqlserver://1E1/test;SelectMethod=cursor
#hibernate.jdbc.use_scrollable_resultset false

Doesn't it mean that Hibernate does not work with jTDS driver? (Unless it's just added to Hibernate 2.1.3? The version I have is 2.1.2. )


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 3:42 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
This might not be accurate anymore. There was a time when jTDS was in its early stages and had several missing features. I think we may now remove that warning. I don't have MS SQL server (Gavin is the DB2/MS SQL guy), so I can't verify the current state. However, we had only good reports about it on the forum. If anyone can run the unit tests with it, I'll remove the warning.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 4:21 pm 
Newbie

Joined: Wed May 12, 2004 2:57 pm
Posts: 17
OK, and thanks again.

FYI, here is a statement I quoted from jTDS's homepage:

"jTDS is also becoming a common choice for enterprise-level applications: starting with release 0.8-rc1 jTDS passes the Hibernate test suite, making it the driver of choice for SQL Server."


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 12, 2004 4:43 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
I'd really recommend the jDTS driver, the developers are also quite interested in Hibernate compatibility, so you can be quite sure that all possible incompatibilities from the driver side are fixed quickly.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 13, 2004 12:02 am 
Beginner
Beginner

Joined: Tue Feb 10, 2004 2:30 pm
Posts: 25
JNetDirect driver works well too, is not free though.


http://www.jnetdirect.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 13, 2004 9:09 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
I have been using the jTDS driver for MIddlegen and HIbernate usage and I am currently happy with it.


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