Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear all

suddenly without any change in my soft or mysql server i got the following error while inserting data from my software (C# + Vs2005 + .Net Connector)

MySql.Data.MySqlClient.MySqlException was unhandled
Message="Fatal error encountered during command execution."
Source="System.Data"
ErrorCode=-2147467259
Number=0

but also while testing it worked again once without any reason then re stopped again !!!

any help please

thanks
bye
Posted

The first thing you need to do it reproduce the problem. Make it happen every time if you can.

Then, put some try - catch blocks in your software and catch the exception! Look at the detail and it should help you to find out what the problem is. From what you have told us, there just isn't enough information.
 
Share this answer
 
 
Share this answer
 
Maybe it has something to do with how your INSERT SQL statement looks.
It probably varies on each INSERT ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900