Multiple choice technology web technology

Which method is used to commit all changes in the DataSet or DataTable?

  1. AcceptChanges

  2. Update

  3. GetChanges

  4. Accept

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

AcceptChanges is the specific method in DataSet/DataTable that commits all pending changes since the last AcceptChanges call. It updates the RowState of all rows to Unchanged. Update is a DataAdapter method for database synchronization, GetChanges returns pending changes, and Accept is not a valid method.