Hello,
i am getting an error when i try to use the ON DELETE action when adding a
foriegn key constraint.
Syntax:
ALTER TABLE [table1] ADD CONSTRAINT [FK_FKYCASCADEDELETE]
FOREIGN KEY ([column1]) REFERENCES [table2] (column1)
ON DELETE CASCADE
Error:
Server: Msg 156, Level 15, State 1, Line 3
Incorrect syntax near the keyword 'ON'.
if i take out the 'ON DELETE CASCADE' it works fine. Need help?
Thanks!
Dietrich