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

Is it possible to determine what caused a duplicate key

$
0
0

Is it possible, after you received a 'cannot insert duplicate key' error, to find out WHAT THE DUPLICATE KEY WAS that caused the error?  It seems a trivial thing to do, to report the value that failed, not just that there has been a failure, but that's not how MS reports error messages right now.

I will likely be told to study my code and find what is causing this error.  In the meantime, is it POSSIBLE to find a log file where the error that occured, was recorded?


Viewing all articles
Browse latest Browse all 15889

Trending Articles



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