Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12554

how to identify PK violation values

$
0
0

I have an application that is trying it insert some duplicated PK values into a table and there was always an error due to the insert. I know which database and table is affected but how I can identify which fields are being inserted as duplication? I tried server profiler with the Errors and Warnings Exception event and it did show the errors, however, it didn't show what fields were being violated.

Any idea how I can identify those values?

Thanks


Viewing all articles
Browse latest Browse all 12554

Trending Articles