ALTER TABLE CHILD_TABLE ADD CONSTRAINT RefPARENT_TABLE1
FOREIGN KEY (parent_id)
REFERENCES PARENT_TABLE(parent_id) ON UPDATE CASCADE
go
-------------------------------------------
The above code generates the following error:
Server: Msg 156, Level 15, State 1, Line 3
Incorrect syntax near the keyword 'ON'
------------------------------------------
any ideas why?