aspose file tools*
The moose likes JDBC and the fly likes No suitable driver Exception for sql server 2000 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "No suitable driver Exception for sql server 2000" Watch "No suitable driver Exception for sql server 2000" New topic
Author

No suitable driver Exception for sql server 2000

Anand Krishnanandam
Greenhorn

Joined: May 23, 2006
Posts: 25
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.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42282
    
  64
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.


Ping & DNS - my free Android networking tools app
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 671
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


BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No suitable driver Exception for sql server 2000