Updating a table read with MySqlDataReader
Posted by: Ricardo Maciel
Date: December 30, 2004 11:48PM


First, excuse any blunders since I am newbie to .NET and MySql...

I am writing code to purge a MySql table from illegal .NET DateTime values.
Since an exception would be thrown if MySqlDataAdapter's Fill method is used,
I read the table with MySqlDataReader and build a DataTable adding DataRow's
with the "bad" values replaced.

The table is then displayed by a DataGrid for manipulation. This all works fine.

The problem happens in creating a MySqlDataAdapter to update the DataTable back to the store .
I am not sure what kind of update (and select) command I should place
to bind the DataTable to the table in MySql .

Can you help me?



Options: ReplyQuote

Written By
Updating a table read with MySqlDataReader
December 30, 2004 11:48PM

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.