In ADO.NET, how can you populate a DataTable with data from a database?

  • DataAdapter.Fill
  • DataTable.Load
  • SqlCommand.ExecuteReader
  • SqlConnection.Open
You can populate a DataTable with data from a database using the Fill method of a DataAdapter. It retrieves data from the database and populates the DataTable with the result set.
Add your answer
Loading...

Leave a comment

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