I have a DTS job that I'm running that keeps failing because of Foreign Key contraints on a different table.
My DTS job deletes the rows previously in Table1 and re-inserts them (or tries) because the old records get updated regularly. Table2 has a foreign key constraint that relates back to two of the columns on Table1. Table2 can't be updated until after Table1 gets reset. Unfortunately, Table1 can't get reset due to the Foreign Key constraints.
The only option I've been able to figure out is to delete the foreign key constraints on Table2 that reference back to Table1. Does anyone have any advice on another option I could check on?
I'm not sure my boss will be too terribly happy about the FK-C deletion. However, the DB this job is going to is going to end up read-only. So, I'm thinking the FK-Cs being deleted won't be that big a deal.
Catadmin - MCDBA, MCSA
Remember, "Work" is a four letter word. And you know what your mother told you about using four letter words!
My DTS job deletes the rows previously in Table1 and re-inserts them (or tries) because the old records get updated regularly. Table2 has a foreign key constraint that relates back to two of the columns on Table1. Table2 can't be updated until after Table1 gets reset. Unfortunately, Table1 can't get reset due to the Foreign Key constraints.
The only option I've been able to figure out is to delete the foreign key constraints on Table2 that reference back to Table1. Does anyone have any advice on another option I could check on?
I'm not sure my boss will be too terribly happy about the FK-C deletion. However, the DB this job is going to is going to end up read-only. So, I'm thinking the FK-Cs being deleted won't be that big a deal.
Catadmin - MCDBA, MCSA
Remember, "Work" is a four letter word. And you know what your mother told you about using four letter words!