SQL Server 2008 - Multiple Cascading FK's - Do i need a trigger?
问题 I have a 1..* relationship between User and Post . (one user has many posts) Post has a FK called "UserId", which maps to the "UserId" field on User table. I tried to set this FK as Cascade UPDATE/DELETE, but i get this error: 'Users' table saved successfully 'Posts' table - Unable to create relationship 'FK_Posts_Users'. Introducing FOREIGN KEY constraint 'FK_Posts_Users' on table 'Posts' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or