You use DataAdapter to load a DataTable. Your code makes several changes to the DataTable, sets ContinueUpdateOnError to True, and then calls Update to update the database.

You must log all errors thrown by a row update failure.

What should you do?

 Posted by Rajkatie on 10/30/2012 | Category: ADO.NET Interview questions | Views: 3218 | Points: 40
Select from following answers:
  1. Log the RowError value for all rows with a HasErrors value of True.
  2. Call AcceptChanges in a try-catch block after calling Update. Log exception information.
  3. Add a try-catch block around the call to Update. Log exception information.
  4. All Above

Show Correct Answer


Source: Measureup.com | Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response