Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

MySqlDataAdapter.Update and MySqlException with try catch (1 reply)

$
0
0
Hi!

I'm having problem with try catch when running MySqlDataAdapter.Update! I have the MySqlDataAdapter.Update in a try-catch block, but it still throws an exception! Is this a known problem or am I doing something wrong?

MyCode:

private void Update(MySqlDataAdapter adapter, DataTable table)
{
try
{
adapter.Update(table);
}
catch (MySqlException e)
{
MessageBox.Show(e.ToString());
}
}

I have tried with Exception instead of MySqlException, but it didn't help!

Viewing all articles
Browse latest Browse all 1451

Trending Articles



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