I want to insert without deleting a foreign key constraint. I have 2 tables, table1 and table2. When I try to insert into table1, I get something along the following error:
The insert statement conflicted with the foreign key constraint "fk_dbo.table1.dbo.table2id"'
This error occurs even after I use ALTER TABLE ? NOCHECK CONSTRAINT ALL
So basically I want to insert values into some foreign key columns without deleting the foreign key constraints. Is there a way to do this?