Solved

MySqlException

Posted on 2004-04-28
7
357 Views
Last Modified: 2007-12-19
Hello everyone,

I have a C# application that makes use of a MySql Database by means of MySQLDirect.NET.  Is there any way to decipher between the different MySqlExceptions.  Such as lost connection, insufficient rights, etc.  I would like to handle the exceptions specifically, but I need to know to tell the difference between the different MySQLExceptions.  Any Suggestions??????????????

Thanks,
Kendal
0
Comment
Question by:gvector1
  • 3
  • 2
  • 2
7 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
Comment Utility
ifits like the other sqlexceptions there will be a Errors property that holds more specific info  ...
0
 

Author Comment

by:gvector1
Comment Utility
I know that there is error codes.  But is there a list somewhere that tells me which error codes mean what coming from a MySQL Exception????????

Kendal
0
 
LVL 12

Expert Comment

by:dfiala13
Comment Utility
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 12

Accepted Solution

by:
dfiala13 earned 500 total points
Comment Utility
This might be a more useful resource going forward...
http://www.mysqlfreaks.com/mysql/manual_Error-handling.html
0
 
LVL 37

Expert Comment

by:gregoryyoung
Comment Utility
they are the native error code from mysql

those two documents should have em.
0
 

Author Comment

by:gvector1
Comment Utility
I have run into a problem.  Some of the error codes I am receiving when I step through debugger is not on the list.  Such as if I try to execute a command after a connection is lost, I get an error 2013 = Lost Connection.  Any idea where that code is coming from?????

Thanks,
Kendal
0
 
LVL 12

Expert Comment

by:dfiala13
Comment Utility
A quick search of Google seems to indicate that is an issue with an older version of mySQL...

http://www.google.com/search?q=MYsql+2013&hl=en&lr=&ie=UTF-8&oe=UTF-8&start=10&sa=N
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now