Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

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 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>