This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to connect with SQLServer from java.

 
Praveen Kumar
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using below program to connect my MSSQLServer :



But i am getting error saying : java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver.

I stetted SQLJDBC4.jar and SQLJDBC.jar files in class path but still i am getting above error. Please tell me what exactly i am doing here ?.. and please tell me where can i get SQLServerDriver (link please )..

Need your suggestions soon :-)

Thanks
Praveen

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is a link to Microsoft's own JDBC driver. And here is a link to jTDS.

Asuming SQLJDBC4.jar or SQLJDBC.jar is in your classpath this should work fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic