sql - server error while defing foreign key -


  & gt; I'm getting errors in SQL and GTA. I foreign & gt; When defining the server Express Key anybody can solve my problem & gt; & Gt; & Gt; 'Tbl_branch' table successfully saved & gt; & Gt; 'Tbl_students' table & gt; & Gt; - Unable to make a connection 'FK_tbl_students_tbl_branch' & Gt; & Gt; Foreign key barrier start & gt; & Gt; 'FK_tbl_students_tbl_branch' & gt; & Gt; 'Tbl_students' may be the reason for the cycle or the & gt; & Gt; Specify on multiple waterfalls paths & gt; & Gt; No action removed or update & gt; & Gt; Action, or other foreign key & gt; & Gt; Odds Could not create & gt; & Gt; Obstacle View previous errors & Gt; & Gt; & Gt; & Gt; & Gt; Blockquote  

I'm pretty sure this is a warning that you have "circular reference" with your foreign key; That is, TBL_brunch is a foreign key which points to TBL students and TLBITindents, which indicates TBL Branch.

The problem especially is that you have cascading or updates are turned on, that means when you delete a line in the TLLBRAb, it will try to remove the related records in tbl_students, which Tbl_branch, etc. will attempt to remove the associated records. In other words, you can create silicclick cascading removal.

Either remove cascading deletion / update, or remove the "circular" foreign key.


Comments