Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.151
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol 5.0.151
  HXTT DBF 7.1.152
  HXTT Excel 6.1.155
  HXTT Json 1.0.123
  HXTT Paradox 7.1.151
  HXTT PDF 2.0.151
  HXTT Text(CSV) 7.1.151
  HXTT Word 1.1.151
  HXTT XML 4.0.152
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
duplicate key Exception
Govind
2013-05-22 07:22:37.0
Hi,
I'm running a scenario where I try to insert duplicate values into an Access Table defined with a primary Key.

the Driver does throw the correct exception as highlighted below, but I'm unsure as to what the "record 00007C00" implies in the exception message. Can you please clarify?


Error: Failed to insert a new record into table Province123:Failed to insert a duplicate key for conflict with record 00007C00
SQLState: 23000
ErrorCode: 143360
Re:duplicate key Exception
HXTT Support
2013-05-22 07:32:17.0
00007C00 is an internal rowid to locate the data row in physical file.
Re:duplicate key Exception
Govind
2013-05-22 09:22:18.0
Thanks for the update.
I'm just wondering if it would be possible to reflect the actual rowid or primary key id instead, since the internal rowid in the physical file does not really help a user trying to debug the error. Thanks again.
Re:Re:Re:duplicate key Exception
HXTT Support
2013-05-22 17:48:18.0
>Failed to insert a duplicate key for conflict with record 00007C00
>does not really help a user trying to debug the error.
You can use
select * from yourtable where _rowid_={"varbinary" '\x00\x00\x7C\x00'};



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