J
Jens
Hi there,
What is wrong here ??
ALTER TABLE TRefStubData
ADD CONSTRAINT TRefStubDataTData
FOREIGN KEY (nDataID) REFERENCES TData (nDataID)
ON DELETE CASCADE
I try to alter a table to set a foreign key and some constraint. Access
complaints about this statement with "Syntax error in CONSTRAINT clause".
I found an article in MSDN "Intermediate Microsoft Jet SQL for Access 2000"
which uses pretty much the same statement.
In anther article "HOWTO: Common DDL SQL for the Microsoft Access Database
Engine", they mention it is not possible to use "ON DELETE CASCADE" using
DDL.
snip..
Note: You cannot specify that you want "Cascade Updates" or "Cascade
Deletes" with a relationship created using DDL.
snip end
Is there something wrong in my alter table statement?? Or is it just not
possible to use "ON DELETE CASCADE"?
does anyone have a suggestion on how to alter a MS-access table using ODBC.
Thanks
What is wrong here ??
ALTER TABLE TRefStubData
ADD CONSTRAINT TRefStubDataTData
FOREIGN KEY (nDataID) REFERENCES TData (nDataID)
ON DELETE CASCADE
I try to alter a table to set a foreign key and some constraint. Access
complaints about this statement with "Syntax error in CONSTRAINT clause".
I found an article in MSDN "Intermediate Microsoft Jet SQL for Access 2000"
which uses pretty much the same statement.
In anther article "HOWTO: Common DDL SQL for the Microsoft Access Database
Engine", they mention it is not possible to use "ON DELETE CASCADE" using
DDL.
snip..
Note: You cannot specify that you want "Cascade Updates" or "Cascade
Deletes" with a relationship created using DDL.
snip end
Is there something wrong in my alter table statement?? Or is it just not
possible to use "ON DELETE CASCADE"?
does anyone have a suggestion on how to alter a MS-access table using ODBC.
Thanks