Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.253
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol 5.0.252
  HXTT DBF 7.1.253
  HXTT Excel 6.1.256
  HXTT Json 1.0.224
  HXTT Paradox 7.1.252
  HXTT PDF 2.0.252
  HXTT Text(CSV) 7.1.252
  HXTT Word 1.1.252
  HXTT XML 4.0.253
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 ACCESS
Access database corrupted after insert
Simon
2011-07-06 08:06:36
Hi,

I have downloaded the evaluation version of your JDBC MsAccess driver and I have problem when using it in my program.
I use the last version (05 july 2011) with an Access 97 database.

When executing 2 INSERT statements on the same table, an exception is thrown after the second INSERT :
java.sql.SQLException: Failed to insert a new record into table Definition type:Failed to insert a duplicate key for conflict with record 00000900
But there is no primary key conflict nor unique index conflict in the 2 statements (and there is no other row in the table). If I executes the 2 statements directely with Access, there is no problem to insert the 2 rows, so it's not an referential integrity issue.
After the exception is thrown, I tried to open the database using Access and I can not modify or delete the row inserted by the first request. I have to use the tool "Repair database" in the Access menu, to be able to delete or modify the row.
After using the repair tool, I can execute the second INSERT by JDBC without any problem. But, no other INSERT can be done in the table without using the tool Repair database.

Do you have any idea to resolve the problem ?
I can provide you the database and the Java code I use to reproduce the problem if needed.

Thanks in advance for your reply.
Simon
Re:Access database corrupted after insert
HXTT Support
2011-07-06 15:56:30
Please email your sample. Thanks.
Re:Re:Access database corrupted after insert
Simon
2011-07-07 00:25:27
I have just sent samples data to support@hxtt.com.

Regards
Simon
Re:Re:Re:Access database corrupted after insert
HXTT Support
2011-07-07 04:32:06
Checked. It's resulted by a GUID column which has a default GENGUID() value, and has a primary key index. Please donwload the latest package, which will simulate GENGUID() to produce unique GUID value.
Re:Re:Re:Re:Access database corrupted after insert
Simon
2011-07-07 05:59:02
Thank you very much. It resolve the problem with my test database, but when I try to check this new driver version with my real database, the driver throws a SQLFeatureNotSupportedException because I try to execute more than 50 queries.

You previously send us a non limited version (with only one month of validity, but with unlimited number of queries). To be able to validate the driver with our software, before bying a licence, could you please send us, by email, a version of the driver without this limitation.

Thank you
Best regards
Simon
Re:Re:Re:Re:Re:Access database corrupted after insert
HXTT Support
2011-07-07 06:21:52
Sent. Please check your mailbox.
Re:Re:Re:Re:Re:Re:Access database corrupted after insert
Simon
2011-07-08 02:07:06
Thank you very much.
The correction seems to be ok for this problem.

Regards
Simon

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 | Sitemap