Question: I’m investigating a persistent error message Error 2627 Cannot insert duplicate key row in object '%.*ls' with unique index '%.*ls'. The duplicate key value is %ls. How can I troubleshoot and fix? Answer: In summary , the unique index on the column is preventing the statement from commiting. Another record exists with the same value on the unique index column. Error 2627 is closely related to a constraint violation. Constraints are similar to Unique Indexes – when a UNIQUE CONSTRAINT is created a UNIQUE INDEX is automatically created. Read more on Difference between UNIQUE CONSTRAINT versus UNIQUE INDEX Violation... Read more →