• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Not able to connect with SQLServer from java.

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

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 :-)


Posts: 10336
Hibernate Eclipse IDE 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.
You know it is dark times when the trees riot. I think this tiny ad is their leader:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic