Pages

Men

rh

4/13/2013

How to save the changes, made in the dataset, to the database?

To save the changed rows and tables to the physical database, we call the AcceptChanges() method of the DataSet class.

SQLDataAdapter da = new SQLDataAdapter();
Dataset ds = new DataSet
da.Update(ds, "Employee");
ds.AcceptChanges();

No comments :

Post a Comment