JDBC connection for DBF files

  • Thread starter Thread starter deepak.n.l
  • Start date Start date
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:odbc: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.
 
Back
Top