Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  Buy Now
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

Access driver locks mdb files
Gianluca Buelloni
2006-02-10 00:00:00.0
In november 2005 I purchased a licence for HXTT Access, and now
I'm experiencing some problems using this tool.

I'm using a JDK 1.5 on a Windows XP platform.
I created a java Application which access an mdb file on my PC, and
this application reads all the tables found in the mdb, and creates
a cvs file for each table, writing the table data in the cvs file.

The problems arise when the same application try to move the
mdb file in a new dir, at the end of the export operations.
The move operation does never succeed, and the mdb file is never moved.
I move the file using the java method renameTo() of the class,
and I'm sure to close the java.sql.Connection, java.sql.Statement
and java.sql.Resultset used in the export operation.

Why this behaviour?

Re:Access driver locks mdb files
HXTT Support
2006-02-10 00:00:00.0
>and I'm sure to close the java.sql.Connection, java.sql.Statement
>and java.sql.Resultset used in the export operation.
>Why this behaviour?
Because HXTT Access will use delayed transaction to close MDB files. It will release MDB files after 5~10s if there's no any connection or ResultSet to use it. The preferable remove mdb file method is:
public static boolean renameTo(File src,File dest){
int timeout=0
return false;
}catch (InterruptedException e) {}
return true;

Search Key   Search by Last 50 Questions


Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap