• Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able to connect with SQLServer from java.  RSS feed

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!