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
Insert into AutoNum columns my result in wrong Data
Norbert
2006-02-20 00:00:00
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
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
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
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
>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
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap