MySQL error codes in .NET
Hi,
I have a MySQL database with a users table where the loginid field is unique. I'm inserting records into this field via an ASP.NET page (I'm using the MySQL ODBC 3.52 driver) using OleDb.
If i try an insert a record with a loginid that is already in the database an OleDbException is generated. Is is possible to determine what error has occurred in MySql from this error, because the error message returned to the exception is:
No error information available: DB_E_ERRORSINCOMMAND(0x80040E14).
Any idea's about how to catch the real error so I can display a meaningful message to the user?
Thanks.
Subject
Written By
Posted
MySQL error codes in .NET
January 12, 2005 06:57AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.