Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a trigger to Ms Access database
Message
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00355403
Message ID:
00355427
Views:
21
How can i do that, i´m creating references with sql code.

I need to create references with "enforce referential integrity", "cascade update related fields" and "cascade delete related rows" programaticaly.

I'm using Delphi 4, how can i do it.

I'm using this.

ALTER TABLE Table1 ADD CONSTRAINT ConstraintName
FOREIGN KEY (key1) REFERENCES Table2

It creates the relationship between table1 and table2, but it's missing something to create cascade update and cascade delete.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform