Quantcast
Channel: Oracle, MySQL, Sybase, Informix and other databases
Viewing all articles
Browse latest Browse all 1350

Detect Duplicate entry mysql+C#

$
0
0

I want to know the error code for primary key violation for mysql with c#. Earlier i was using -2147467259 erro code i have read somewhere that this error code is for primary key violation. But this error code is coming for every database exception. How to detect primary key violation in catch.

Any help would be appreciated. Thank you


Viewing all articles
Browse latest Browse all 1350

Trending Articles



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