C
Chris Smith
I can locate help with subject topic in my local Access 2003 documentation,
but it's nowhere to be found on msdn.microsoft.com. Please send link.
Lots of non-relevant stuff when I searched on MSDN, though.
I'm quite challenged by the CONSTRAINT clause documentation. In particular,
this example from the documentation doesn't seem to work:
-8<--------8<------
You can specify actions to be performed on the foreign table based on a
corresponding action performed on a primary key in the table on which the
CONSTRAINT is defined. For example, consider the following definition for the
table Customers:
CREATE TABLE Customers (CustId INTEGER PRIMARY KEY, CLstNm NCHAR VARYING
(50))
Consider the following definition of the table Orders, which defines a
foreign key relationship referencing the primary key of the Customers table:
CREATE TABLE Orders (OrderId INTEGER PRIMARY KEY, CustId INTEGER, OrderNotes
NCHAR VARYING (255), CONSTRAINT FKOrdersCustId FOREIGN KEY (CustId)
REFERENCES Customers ON UPDATE CASCADE ON DELETE CASCADE
---8<-------8<-----
Even s/NCHAR VARYING (255)/VARCHAR(255)/ just got me to a parse error in
the constraint clause.
Basically, I'm writing my database as a text file, and doing some
hack-tackular stuff to it in a script, such that it builds against MSAccess,
or SQLServer, but the Jet4.0 SQL DDL seems to suffer from a popularity
deficit...
Thanks,
Chris
but it's nowhere to be found on msdn.microsoft.com. Please send link.
Lots of non-relevant stuff when I searched on MSDN, though.
I'm quite challenged by the CONSTRAINT clause documentation. In particular,
this example from the documentation doesn't seem to work:
-8<--------8<------
You can specify actions to be performed on the foreign table based on a
corresponding action performed on a primary key in the table on which the
CONSTRAINT is defined. For example, consider the following definition for the
table Customers:
CREATE TABLE Customers (CustId INTEGER PRIMARY KEY, CLstNm NCHAR VARYING
(50))
Consider the following definition of the table Orders, which defines a
foreign key relationship referencing the primary key of the Customers table:
CREATE TABLE Orders (OrderId INTEGER PRIMARY KEY, CustId INTEGER, OrderNotes
NCHAR VARYING (255), CONSTRAINT FKOrdersCustId FOREIGN KEY (CustId)
REFERENCES Customers ON UPDATE CASCADE ON DELETE CASCADE
---8<-------8<-----
Even s/NCHAR VARYING (255)/VARCHAR(255)/ just got me to a parse error in
the constraint clause.
Basically, I'm writing my database as a text file, and doing some
hack-tackular stuff to it in a script, such that it builds against MSAccess,
or SQLServer, but the Jet4.0 SQL DDL seems to suffer from a popularity
deficit...
Thanks,
Chris