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
Insert into AutoNum columns my result in wrong Data
Norbert
2006-02-20 00:00:00.0
We have some weird results when trying to insert numeric values into a AutoNum column. Try to insert:

insert into AutoNum (AutoNum) values (77100001);
insert into AutoNum (AutoNum) values (22200055);
insert into AutoNum (AutoNum) values (33300034);
insert into AutoNum (AutoNum) values (77400023);
insert into AutoNum (AutoNum) values (12500067);

in a Access DB consisting of table 'AutoNum' with a single column 'AutoNum' which is a Long Integer with type AutoNum (de: AutoWert).

The ODBC-JDBC driver shows the expected result:
AutoNum
12500067
22200055
33300034
77100001
77400023

But the HXTT JDBC driver results in:
AutoNum
77100001
77100002
77100003
77400023
77400024

Any idea on this?

Thanks,
Norbert
Re:Insert into AutoNum columns my result in wrong Data
HXTT Support
2006-02-20 00:00:00.0
Yeah. AutoNum column should be maintained automatically by database engine, so that you needn't to define a value in insert or update sql. You can assign a big value than all values in the existent rows, then HXTT Acces will accept it. If you use a smaller value, then HXTT Access will ignore it, and use the next autoincrement value.
Re:Re:Insert into AutoNum columns my result in wrong Data
HXTT Support
2006-02-20 00:00:00.0
If you wish to insert random value for AutoNum columns, you should change your AutoNum type into long type. We don't think that MS Access ODBC driver is doing a correct action since AutoNum type isn't updatable in MS Access.
Re:Re:Insert into AutoNum columns my result in wrong Data
Norbert
2006-02-20 00:00:00.0
I understand how this is done from HXTT Access, but I don't understand why?

This makes some problems for us because we get a predefined Access database and have to fill it with data. In our case it even makes more sense to omit the AutoNum facility of Access and use precalculated numbers. This worked well with the JDBC-ODBC bridge but not with HXTT Access.

Forcing HXTT Access to work like the JDBC-ODBC bridge doesn't seem to work. Right?
Any proposals for this without changing in the resulting database schema?
Re:Re:Re:Re:Insert into AutoNum columns my result in wrong Data
HXTT Access
2006-02-20 00:00:00.0
>In our case it even makes more sense to omit the AutoNum facility of Access
>and use precalculated numbers.
>This worked well with the JDBC-ODBC bridge but not with HXTT Access.
Now HXTT Access works like MS Access ODBC driver for AutoNum. Please download the latest package.

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