JDBC connection for DBF files

D

deepak.n.l

I am not able to connect to DBF files:

I am getting this following error:

DBF Driver Driver not found!
java.sql.SQLException: No suitable driver

I am using
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

and the code that I am using to connect is:

String databaseURL = "jdbc:blush:dbc:Driver={Microsoft Visual FoxPro
Driver};UID=;PWD=; SourceDB=" + filename +
";SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes";

return DriverManager.getConnection(databaseURL, "", "");

where filename = the folder where my DBF files are residing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top