J
JDF_Horns
I am using an MS 2007 database linked to DB2 tables. I am trying to
use an append query to add new records to a link DB2 table (with a
single field used a primary key). I was expecting that "new" records
would be added to my table, and that existing records would be
excluded (this is the way it works when I use append queries to add
records to tables that is not linked); however, I get an ODBC --
insert on a linked table 'table_name' failed. error.
The error message references SQL0803N One or more values in the
INSERT statement, UPDATE statement, or foreign key update caused by a
DELETE statement are not valid becauase the primary key, unique
constraint or index identified by "1" constrains table 'table_name'
from having duplicate rows for those columns. SQLSTATE = 23505.
Any suggestions for resolving this would be appreciated.
Thanks
JDF
use an append query to add new records to a link DB2 table (with a
single field used a primary key). I was expecting that "new" records
would be added to my table, and that existing records would be
excluded (this is the way it works when I use append queries to add
records to tables that is not linked); however, I get an ODBC --
insert on a linked table 'table_name' failed. error.
The error message references SQL0803N One or more values in the
INSERT statement, UPDATE statement, or foreign key update caused by a
DELETE statement are not valid becauase the primary key, unique
constraint or index identified by "1" constrains table 'table_name'
from having duplicate rows for those columns. SQLSTATE = 23505.
Any suggestions for resolving this would be appreciated.
Thanks
JDF