I am stuck on how to replace all the data in a table that already has relationship.
- I have to tables, Company and Contact. and the PrimaryKeys of these two tables are related to other tables.
- Before, I do anything with Contact, I made a copy of Contact table (select * INTO ContactBK from Contact)
- After I modified some data in Contact, now I like to replace all the data from ContactBK (orginal) back to Contact, but I could not.
- I have tried to use Import in Server Management Studio and select "replace exists data", but it failed. I also can not delete all the data in Contact table and replace, because the ContactID is tied to others tables.