Interview Questions

Explain DataSet.AcceptChanges and DataAdapter.Update methods.

.NET Interview Questions and Answers


(Continued from previous question...)

Explain DataSet.AcceptChanges and DataAdapter.Update methods.

DataAdapter.Update method Calls the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the DataSet.
DataSet.AcceptChanges method Commits all the changes made to this row since the last time AcceptChanges was called.

(Continued on next question...)

Other Interview Questions