Scenario: When you update data in a dataset, the changes should also be reflected in the underlying database. What ADO.NET component is responsible for syncing these changes with the database?

  • DataAdapter
  • SqlCommand
  • SqlConnection
  • SqlDataReader
The DataAdapter in ADO.NET serves as a bridge between a dataset and a database. It facilitates communication between the dataset and the database by executing SQL commands (such as INSERT, UPDATE, DELETE) and updating the database with changes made to the dataset. Hence, it ensures synchronization of data between the dataset and the underlying database.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *