Possible Duplicate:
Introducing FOREIGN KEY constraint 'c_name' on table 't_name' may cause cycles or multiple cascade paths
I have a person table
person_id name 1 John 2 Josh
I have a relationship table
relationship_id person_a person_b 1 1 2
I am creating a foreign key relationship between relationship.person_a -> person.person_id with ON UPDATE CASCADE. This works fine. Now I try to create a foreign key relationship between relationship.person_a -> person.person_id with UPDATE CASCADE, but I get an error from SQL Server as follows:
SQL ALTER TABLE [dbo].[relationship] ADD CONSTRAINT [person_b_is_person] FOREIGN KEY ([person_b]) REFERENCES [dbo].[person] ([person_id]) ON UPDATE CASCADE: Introducing FOREIGN KEY constraint 'person_b_is_person' on table 'relationship' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
Why is this a problem?? Works on other databases like MySQL, Postgres. I want the ON UPDATE CASCADE so that if the person_id is changed, the relationships should be updated with the correct ids as well.