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

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
 

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