The only way to "override" a foreign key constraint is to disable it:
Disabling a FOREIGN KEY constraint enables data in the table to be modified without being validated by the constraints. Disable a FOREIGN KEY constraint during INSERT and UPDATE statements if new data will violate the constraint or if the constraint should apply only to the data already in the database.
You need to use the ALTER TABLE
command to disable a constraint, using the NOCHECK
keyword. IE:
ALTER TABLE dbo.cnst_example NOCHECK CONSTRAINT salary_cap;
The only other alternative is to drop the constraint, and re-add when necessary.
The necessity of doing this should lead to discussions about how to model the tables so this is not necessary.