cousinconley
MIS
I am inserting records from a temp table (PS_PROJ_RES_TMP) to a main table (PS_PROJ_RESOURCE) in MS SQL Server 2000. I am consistantly getting the message:
The insert failed:
Server: Msg 2601, Level 14, State 3, Line 1
Cannot insert duplicate key row in object 'PS_PROJ_RESOURCE' with unique index 'PS_PROJ_RESOURCE'.
The statement has been terminated.
I cannot find any duplicate keys in the temp table corresponding to the main table. Both tables have the same fields. The temp table is used by our software to perform calculations on the data before it is inserted to the main table. What would trigger the duplicate key error other than a duplicate key? It has me boggled.
The insert failed:
Server: Msg 2601, Level 14, State 3, Line 1
Cannot insert duplicate key row in object 'PS_PROJ_RESOURCE' with unique index 'PS_PROJ_RESOURCE'.
The statement has been terminated.
I cannot find any duplicate keys in the temp table corresponding to the main table. Both tables have the same fields. The temp table is used by our software to perform calculations on the data before it is inserted to the main table. What would trigger the duplicate key error other than a duplicate key? It has me boggled.