H
Hans Michael Rupp
I am experimenting with ADO.NET
I use MySQL 3.23 with MyODBC 3.51
At the moment I simply try an insert a select and an update. I use the
usual DataSet approach. The select works and retrieves the data from the
database. When I try an update I always get a
System.Data.DBConcurrencyException
I have looked thru some Microsoft documentation and as far as I
understood it a DBConcurrencyException is only thrown when the DataSet
is out of sync with the database.
I am pretty sure that I don't change the database between the filling of
the DataSet and testing the Update statement. I have already looked at
the DataRow which I try to update immediately before
dataAdapter.Update(dataSetChanged);
it seems hold the same data as as the database.
Does anybody know what could cause this behavior, or give my some hints
what to investigate?
Many thanks,
Hans
I use MySQL 3.23 with MyODBC 3.51
At the moment I simply try an insert a select and an update. I use the
usual DataSet approach. The select works and retrieves the data from the
database. When I try an update I always get a
System.Data.DBConcurrencyException
I have looked thru some Microsoft documentation and as far as I
understood it a DBConcurrencyException is only thrown when the DataSet
is out of sync with the database.
I am pretty sure that I don't change the database between the filling of
the DataSet and testing the Update statement. I have already looked at
the DataRow which I try to update immediately before
dataAdapter.Update(dataSetChanged);
it seems hold the same data as as the database.
Does anybody know what could cause this behavior, or give my some hints
what to investigate?
Many thanks,
Hans