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

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