Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  Buy Now
  HXTT Cobol v5.0
  HXTT DBF v7.1
  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)

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


Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap