freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Molenda, Mark P" <mark.molenda AT eds.com>
- To: "'TDS Development Group'" <freetds AT franklin.oit.unc.edu>
- Subject: RE: jdbc driver
- Date: Thu, 18 Jan 2001 11:48:23 -0500
Thanks for the help, it seems to work and I'll do some more testing. -Mark
-----Original Message-----
From: Thomas Pridham [mailto:TPridham AT CMCTPA.COM]
Sent: Thursday, January 18, 2001 11:23 AM
To: TDS Development Group
Subject: [freetds] RE: jdbc driver
Here is a URL to try...
DriverManager.getConnection("jdbc:freetds:sqlserver://localhost:1433/yourDBn
ame", "sa", "password")
Looks like the problem is with the url...hope this helps.
-----Original Message-----
From: Mark Molenda [mailto:mark.molenda AT eds.com]
Sent: Thursday, January 18, 2001 10:55 AM
To: TDS Development Group
Subject: [freetds] jdbc driver
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?
---
You are currently subscribed to freetds as: [tpridham AT cmctpa.com]
To unsubscribe, forward this message to
$subst('Email.Unsub')
---
You are currently subscribed to freetds as: [mark.molenda AT eds.com]
To unsubscribe, forward this message to
$subst('Email.Unsub')
-
JDBC Driver,
Barnard Foo, 01/03/2001
- <Possible follow-up(s)>
- Re: JDBC Driver, Stefan Bodewig, 01/04/2001
- Re: JDBC Driver, Barnard Foo, 01/04/2001
- jdbc driver, Mark Molenda, 01/18/2001
- RE: jdbc driver, Thomas Pridham, 01/18/2001
- RE: jdbc driver, Molenda, Mark P, 01/18/2001
- Re: jdbc driver, Stefan Bodewig, 01/19/2001
Archive powered by MHonArc 2.6.24.