• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

No suitable driver Exception for sql server 2000

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've installed sql server 2000 in my local machine and I'm trying to connect thro' sql server 2005 jdbc from my application.

I've installed quantum db plugin for myeclipse which is a database tool and i was able to connect to the sql server 2000 and could pull my tables.

I use the same configuration (driver name, connection url,etc) and i've also included the driver in the classpath.
I use hibernate 3.0 to connect to the DB.

it throws an SQLexception : Exception caught...No suitable driver.

i found in the web that it cud be the URL error.
I tried modifying my URL as many times as I cud and didn't get any luck.

so can anyone suggest me what cud be the reason.

Thanks,
Anand.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Well, it could be the URL, but since you already have it working in Eclipse, it probably isn't (assuming you are using the same one). It's more likely that the driver is not in your classpath - check it carefully for typos.
 
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which driver are you using?
SQL server 2005 jdbc driver uses a different driver name and connecting url.
Some details:
SQL server 2005 JDBC driver name change
 
reply
    Bookmark Topic Watch Topic
  • New Topic