You are tasked with creating a .NET application that interacts with a SQL Server database. You want to use a DataAdapter to efficiently populate a DataTable with the result set of a complex SQL query. Which method of the DataAdapter would you use for this purpose?

  • Fill
  • FillSchema
  • GetData
  • Update
The Fill method of the DataAdapter is used to populate a DataTable or a DataSet with the result set of a SQL query. It efficiently retrieves data from the database and populates the specified DataTable with the result set, making it suitable for populating a DataTable with the result set of a complex SQL query in a .NET application.
Add your answer
Loading...

Leave a comment

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