Hello friends I am getting the following error while making the foreign key
‘tbl_course’ table saved successfully
‘tbl_students’ table
– Unable to create relationship ‘FK_tbl_students_tbl_course’.
Introducing FOREIGN KEY constraint
‘FK_tbl_students_tbl_course’ on table
‘tbl_students’ may cause cycles or
multiple cascade paths. Specify ON
DELETE NO ACTION or ON UPDATE NO
ACTION, or modify other FOREIGN KEY
constraints. Could not create
constraint. See previous errors.
I have the following tables College table, Branch table, Course table and Student table
Course has a foreign key college_id, Branch has a foreign key course_id and I want to make college_id, course_id, branch_id as foreign keys to my Student table but while making course_id and branch_id as foreign key in Student table it generate the error mentioned above…please help me to resolve the above problem…..thanks
According to MS
http://support.microsoft.com/kb/321843
Can you live without the cascading deletes? Keep the referential ingegrity but not the referenctial actions (cascades). You could resort to a trigger as a work around if needed.
EDIT:
not tested.