Hello all,
I have two fields from one table that both point to one id field on another table. Since they both point to one field, I cannot set them up under the same relationship, so I set them up under their own. However, when I want to set them up with Cascade update, I can set one up, but get an error when trying to add the other. The error reads as follows:
If I don't set CU on the second one, it saves fine, but then it won't update if I change an employee's name.
How can I enforce both to cascade update?
-Ovatvvon :-Q
I have two fields from one table that both point to one id field on another table. Since they both point to one field, I cannot set them up under the same relationship, so I set them up under their own. However, when I want to set them up with Cascade update, I can set one up, but get an error when trying to add the other. The error reads as follows:
Code:
[COLOR=red]
'EMPLOYEE' table saved successfully
'AT_APPLICANT' table
- Unable to create relationship 'FK_AT_APPLICANT_EMPLOYEE1'.
ODBC error: [Microsoft][ODBC SQL Server Driver][SQL Server]Introducing FOREIGN KEY constraint 'FK_AT_APPLICANT_EMPLOYEE1' on table 'AT_APPLICANT' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
[Microsoft][ODBC SQL Server Driver][SQL Server]Could not create constraint. See previous errors.
[/color]
If I don't set CU on the second one, it saves fine, but then it won't update if I change an employee's name.
How can I enforce both to cascade update?
-Ovatvvon :-Q