Skip to Content.
Sympa Menu

freetds - jdbc driver

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Mark Molenda" <mark.molenda AT eds.com>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: jdbc driver
  • Date: Thu, 18 Jan 2001 10:55:11 -0500


When I go to run a select on a SQL Server 6.5 I get the following message:

"SQLException: java.sql.SQLException: No suitable driver"


My code is as follows:
try
{
Class.forName("com.internetcds.jdbc.tds.Driver");
}catch(Exception ex)
{
System.out.println("Can't find Database driver class: " + ex);
return;
}
try
{
String query2 = "select last_update from contact" ;
Connection con2 =
DriverManager.getConnection("jdbc:freetds:goodhostnamehere","sa","password");



Statement stmt2 = con2.createStatement();
ResultSet rs2 = stmt2.executeQuery(query2);

etc...etc...

Does anyone out there have a fix for this?




Archive powered by MHonArc 2.6.24.

Top of Page