Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MSSQL - JTDS Driver Connection Problem?????

 
Edward Durai
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi experts,
Thanks for Ur all supports and Queries Regarding Hibernate. I have one problem to connect MSSQL Database with Hibernate.

Can U give me a driver name and JDBC URL Path of MSSQL. i am usig jtds. i have a jar files for jdts. but it is not connected.

and one more question: How can i set classpath for hibernate3.jar or any in NETBEANS IDE. Because I got exception all the hibernate classes not found.

My Configuration hibernate file is like ...
------------------------------------------------------------
<session-factory>
<property name="connection.driver_class">net.sourceforge.jtds.jdbc.Driver</property>
<property name="connection.url">jdbc:jtds:sqlserver://192.168.102.100:1433/student</property>
<property name="connection.username">sa</property>
<property name="connection.password">sa</property>

<property name="dialect">org.hibernate.dialect.SQLServerDialect</property>

------------------------------------------------------------
I eagerly waiting for your valuable answers.... thanks....
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your driver name and URL both look fine. jTDS have a useful FAQ that may be helpful.

As regards setting up Netbeans, you should take a look in our IDEs, Version Control and other tools forum. This is the sort of question that gets answered regularly there.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic