Hi,
I am trying to INSERT data to MyTable using a SELECT statement from another table, I am getting the following error:
Server: Msg 2627, Level 14, State 1, Line 4
Violation of PRIMARY KEY constraint 'PK_MyTable'. Cannot insert duplicate key in object 'MyTable'.
The statement has been terminated.
Is there a way of identifying the duplicate records at the source table?
Thanks
Dabase
I am trying to INSERT data to MyTable using a SELECT statement from another table, I am getting the following error:
Server: Msg 2627, Level 14, State 1, Line 4
Violation of PRIMARY KEY constraint 'PK_MyTable'. Cannot insert duplicate key in object 'MyTable'.
The statement has been terminated.
Is there a way of identifying the duplicate records at the source table?
Thanks
Dabase