> I need to connect to tables were created in Clipper that have extension of
> dbf. I have tried the jdbc:odbc bridge but get a no Suitable driver.
> Currently we use VB and a Datadirect 4.1 driver. I am sure they is a way to
> connect to these kinds of file but I really have no clue. Any help would be
> greatly appreciated
As long as you have a datasource setup with ODBC, there should be no problem. Please
post your code.

Signature
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)
Jason Nicodemus - 25 Feb 2005 20:59 GMT
Here is the code I was using.
public dbfReader() {
Clipper = new org.netbeans.lib.sql.ConnectionSource();
Clipper.setDatabase("jdbc:odbc:SurgeOn32");
Clipper.setDriver("sun.jdbc.odbc.JdbcOdbcDriver");
try {
Connection conn = DriverManager.getConnection
(Clipper.getDatabase(),"","");
Statement stmt = conn.createStatement();
ResultSet rs;
rs = stmt.executeQuery("SELECT P_LNAME FROM PATGEN1 WHERE P_GID
= 0001234");
while ( rs.next() ) {
String lastName = rs.getString("P_LNAME");
System.out.println(lastName);
}
conn.close();
} catch (Exception e) {
System.err.println("Got an exception! ");
System.err.println(e.getMessage());
}
}
}
Lee Fesperman - 25 Feb 2005 23:20 GMT
> Here is the code I was using.
>
[quoted text clipped - 5 lines]
> Connection conn = DriverManager.getConnection
> (Clipper.getDatabase(),"","");
I don't know what setDriver() is doing, but you need to register the driver. That's what
the exception indicates. Perhaps, something like this is what is needed:
Class.forName(Clipper.getDriver()); // will register the driver
Connection conn = ....

Signature
Lee Fesperman, FFE Software, Inc. (http://www.firstsql.com)
==============================================================
* The Ultimate DBMS is here!
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)