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)
|
>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.
|