Thanks.
I got it to work by using a DataTableReader and writing an explicit loop to
iterate through the reader and explicitly insert the rows into the SQL CE
database.
Is there a way to take a given dataset and populate a database table with
the data in the dataset without writing an explicit loop in C#? Also, I want
the function sync_db to be generic so that it can be used for a variety of
different database tables.
"Cor Ligthert[MVP]" wrote:
Quote:
Rohit,
A DBDataAdapter updates data in datasets, datatables or datarows as long as
the rows in those have rowstates that are changed, inserted or updated.
As long as that is not the case, nothing is done.
(The setting of the Delete command from the commandbuilder is without sense,
that is not the way the commandbuilder is working, you can leave that it has
no effect).
Cor |