Link to home
Start Free TrialLog in
Avatar of dataentity
dataentity

asked on

DTS Error...COLUMN FOREIGN KEY constraint...Excel to SQL or SQL to SQL

I am trying to copy 2 fields from a table into a different table in the same database.  Using the DTS I match up the columns and proceed with the copy.  It throws an error  (INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'XXXXX'...."  The error in on the on the very last line in the column.  I have tried importing from Excel as well...Same conflict... How do I force it to copy this information over???


Thankyou
Robert Zordel
Dataentity, LLC
Avatar of Brian Crowe
Brian Crowe
Flag of United States of America image

determine which foreign key you are conflicting with and either disable it or conform.
ASKER CERTIFIED SOLUTION
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dataentity
dataentity

ASKER

How would I create a VIEW to filter it out?   I think your right on the EOF character, but it might just be easier to delete the row and then manually add it back in.  I am only using 2 columns after all.  What do you think?
>>How would I create a VIEW to filter it out?  <<
Post the structure of the table.

>> but it might just be easier to delete the row <<
I agree.