Hi all I I have a table that Imported from access to sql and I'm trying to insert it into the exsisting SQL table which has the same data as the Access table only the access table has been updated so it has more records in it. When I run my Insert statement it fails. Can anyone help plsMsg 547, Level 16, State 0, Line 4The INSERT statement conflicted with the FOREIGN KEY constraint "FK_TanfActivity_tbl_People_tbls". The conflict occurred in database "SCAIR", table "dbo.People_tbls", column 'Parent ID'.The statement has been terminated.
SET IDENTITY_INSERT TanfActivity_tbl ONINSERT INTO TanfActivity_tbl (ID, [Contact Date], [Parent ID], [Type of Contact], [Purpose of Contact], [Referral Date], [Earned hours], [Catagory for hours], [Services Covered], [State Catagory], [State Services Covered])SELECT ID, [Contact Date], [Parent ID], [Type of Contact], [Purpose of Contact], [Referral Date], [Earned hours], [Catagory for hours], [Services Covered], [State Catagory], [State Services Covered]FROM Contact_NewWHERE (NOT EXISTS (SELECT ID, [Contact Date], [Parent ID], [Type of Contact], [Purpose of Contact], [Referral Date], [Earned hours], [Catagory for hours], [Services Covered], [State Catagory], [State Services Covered] FROM TanfActivity_tbl WHERE (TanfActivity_tbl.[ID] = Contact_New.[ID])))SET IDENTITY_INSERT TanfActivity_tbl OFF