-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET 5.0 | Implement SqlException.SqlState #648
Comments
Thanks @roji Acknowledged for .NET 5.0 new APIs. |
10:14:55 AM [main] Initializing Control Panel Is there a way of finding out MySql Server error if the MySQL shutdown unexpectedly. I tried looking at event logs but don't understand how to fix the error. Very new to MySQL. Similar to implementation of SqlState!!? Thanks in advance. |
@asante07 I think you are asking in the wrong place... |
dotnet/runtime#35601 introduces DbException.SqlState for .NET 5.0, for standard 5-character error codes.
SQL Server has its own incompatible numeric error code scheme, currently surfaced via SqlError.Number. However, the SQL Server ODBC driver apparently maps the native SQL Server errors to SQLSTATE values. As pointed out by @cheenamalhotra, the JDBC driver does the same, although it maps only a handful of codes (maybe the ODBC translation could be copied?)
The text was updated successfully, but these errors were encountered: