Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT DBF
Getting error while connecting to MDB file
Ravi Jagtap
2007-06-22 06:22:52
Hi,
I am using Oracle2Access V1.2 API for connecting to the MDB file from my JAVA application. But i am getting an error

java.sql.SQLException: D:/tempDB.mdb; doesn't exist or can't be accessed!
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.sql.bm.a(Unknown Source)
at com.hxtt.sql.access.n.(Unknown Source)
at com.hxtt.sql.access.EmbeddedDriver.connect(Unknown Source)
at com.hxtt.global.SQLState.getConnection(Unknown Source)
at com.hxtt.sql.HxttDriver.if(Unknown Source)
at com.hxtt.sql.HxttDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:193)
at dc.ImportOracleData.(ImportOracleData.java:41)
at dc.ImportOracleData.main(ImportOracleData.java:153)

The database is in D:\ drive (D:\tempDB.mdb) which is same i have given in the application. But i am getting the above mentioned error.
Please help me to sort this out
Re:Getting error while connecting to MDB file
HXTT Support
2007-06-22 09:43:38
Please redownload the EMBOracle2Access_WithDRV.jar package or EMBOracle2Access_WithoutDRV.jar package.

We have fixed this problem.

You can run the follows test sample code to export data.

public static void main(String[] args) throws SQLException, ClassNotFoundException, InstantiationException, IllegalAccessException {
//exportTableToAccess2003(String schemaName, String tableName, String targetDirectory, String targetTableName, String targetConnPar) throws SQLException {
Connection aConn = null;
try { Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
aConn = DriverManager.getConnection("jdbc:oracle:thin:test/test@192.168.1.16:1521:testdb");
com.hxtt.data.export.advance.OracleConnectionGetter.setConnection(aConn);
com.hxtt.data.export.advance.Oracle2Access.exportTableToAccess2000(null,"kf_csb","h:/tmp/new.mdb","BTABLE",null);

//must recall setConnection function
com.hxtt.data.export.advance.OracleConnectionGetter.setConnection(aConn);
com.hxtt.data.export.advance.Oracle2Access.exportTableToAccess2000(null,"kf_ggtc","h:/tmp/new.mdb","KF_GGTC",null);
}
catch(Exception ee ) {
ee.printStackTrace();
if (aConn!=null) aConn.close();
}

}
Re:Getting error while connecting to MDB file
HXTT Support
2007-06-22 09:50:05
If this errors happened still, maybe the Access MDB file has damaged or be a unsupported mdb format.

Please sent your tempDB.mdb file to our email box.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap