Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  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)

HXTT ACCESS
duplicate key Exception
Govind
2013-05-22 07:22:37
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
00007C00 is an internal rowid to locate the data row in physical file.
Re:duplicate key Exception
Govind
2013-05-22 09:22:18
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
>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 | Refund | Sitemap