In ADO.NET, what are the two key functions of a DataAdapter?

  • Converts data between different data types
  • Establishes a connection to the database and executes SQL commands
  • Manipulates data within a DataSet
  • Reads data from the database and populates a DataSet
A DataAdapter in ADO.NET primarily serves two key functions: reading data from a database and populating a DataSet. This involves fetching data from the database based on a provided SQL query or command and then filling the DataSet with the retrieved data. This allows for disconnected data access in ADO.NET, enabling applications to work with data locally within the DataSet.
Add your answer
Loading...

Leave a comment

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