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
Some SQL fail on Access 2003
Kevin Mitchell
2009-03-19 09:09:28.0
Greetings,

I'm evaluating your product. It seems to be the only one of it's kind for Access.

Unfortunately certain SQL commands that work in Visual Basic are not working via
the HXTT JDBC driver. In particular the ALTER TABLE command fails when
attempting to add a foreign key constraint. Other problems arose like mulitple inserts with an automatic id field. I've tried both the 4.0 and 3.0 versions of your driver.
I'm an MS Access novice so it could well be I need to configure something in my mdb database before this works. I'd appreciate your help.

Here's a failing sequence of commands that all work in VB.

drop table if exists EVENTS
drop table if exists PERSON
drop table if exists PERSON_EMAIL_ADDR
drop table if exists PERSON_EVENT
create table EVENTS (EVENT_ID bigint not null auto_increment, EVENT_DATE timestamp null, EVENT_TITLE varchar(255) null, primary key (EVENT_ID))
create table PERSON (PERSON_ID bigint not null auto_increment, age integer null, FIRST_NAME varchar(255) null, LAST_NAME varchar(255) null, primary key (PERSON_ID))
create table PERSON_EMAIL_ADDR (PERSON_ID bigint not null, EMAIL_ADDR varchar(255) null)
create table PERSON_EVENT (PERSON_ID bigint not null, EVENT_ID bigint not null, primary key (PERSON_ID, EVENT_ID))
alter table PERSON_EMAIL_ADDR add constraint FKA54215FEB0A1327A foreign key (PERSON_ID) references PERSON
java.sql.SQLException: Syntax error: Stopped parse at FKA54215FEB0A1327A
java.sql.SQLException: Syntax error: Stopped parse at FKA54215FEB0A1327A
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.a.b.a(Unknown Source)
at com.hxtt.a.b.a(Unknown Source)
at com.hxtt.a.b.g(Unknown Source)
at com.hxtt.sql.bm.o(Unknown Source)
at com.hxtt.sql.ag.if(Unknown Source)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.ag.a(Unknown Source)
at com.hxtt.sql.ag.executeUpdate(Unknown Source)
at edu.upmc.dbmi.access.AccessHxttJdbcTest.main(AccessHxttJdbcTest.java:51)
Re:Some SQL fail on Access 2003
HXTT Support
2009-03-19 20:33:29.0
>alter table PERSON_EMAIL_ADDR add constraint FKA54215FEB0A1327A foreign key
>(PERSON_ID) references PERSON
HXTT Access can understand and obey the foreign key rule which created by MS Access, but HXTT Access doesn't support to create foreign key in sql syntax.

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