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: Hibernate with MS SQL server 2005
PostPosted: Sat Jul 11, 2009 1:37 pm 
Newbie

Joined: Sat Jul 11, 2009 9:15 am
Posts: 1
Hi
dears I want to use Hibernate with MS SQL server 2005 please help me by providing help full material or any example or demo regarding to this.

Thanks to All


Top
 Profile  
 
 Post subject: Re: Hibernate with MS SQL server 2005
PostPosted: Sat Jul 11, 2009 10:57 pm 
Senior
Senior

Joined: Wed Sep 19, 2007 9:31 pm
Posts: 191
Location: Khuntien (Indonesia)
khaleeque wrote:
Hi
dears I want to use Hibernate with MS SQL server 2005 please help me by providing help full material or any example or demo regarding to this.

Thanks to All


You can find the tutorial form http://docs.jboss.org/hibernate/stable/core/reference/en/html/tutorial.html

What you need is,
Code:
1. download the jdbc driver at [url]http://sourceforge.net/projects/jtds/files/[/url]
2. change the connection driver class to net.sourceforge.jtds.jdbc.Driver ( <property name="connection.driver_class">...</property>)
3. change the connection url to jdbc:jtds:<server_type>://<server>[:<port>][/<database>] (<property name="connection.url">...</property>)
4. change the hibernate dialect to org.hibernate.dialect.SQLServerDialect


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.