What is the primary purpose of a DataTable in ADO.NET?

  • Represents a connection to the database
  • Represents a query to be executed on the database
  • Represents a single table of in-memory data
  • Stores a collection of records from a database
A DataTable in ADO.NET represents an in-memory representation of a single table from a database. It allows manipulation of data locally without directly interacting with the database. This can be useful for caching data, performing calculations, or preparing data for display.
Add your answer
Loading...

Leave a comment

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