Hi,
I have two tables called
University(Had Primary Key)
Student
Here i am trying create fk on Student table with the condition ON UPDATE SET NULL ON DELETE SET NULL
The following is an error.
Msg 1761, Level 16, State 0, Line 1
Cannot create the foreign key "fk_on_Student" with the SET NULL referential action, because one or more referencing columns are not nullable.
Msg 1750, Level 16, State 0, Line 1
Could not create constraint. See previous errors.
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Nitin SontakkePosted May 10, 2018, 1:43 AM
Rajkiran SwainPosted May 10, 2018, 1:37 AM