The ExecuteReader method returns a ___________ object that can be used to read the result set.
- DataAdapter
- DataReader
- DataSet
- DataView
In .NET, the ExecuteReader method is used to execute a SQL query and retrieve data from a database. It returns a DataReader object, which provides a forward-only, read-only stream of data from the database. The DataReader is efficient for processing large result sets sequentially.
Loading...
Related Quiz
- How can you handle data conflicts when multiple users are trying to modify the same data in a dataset simultaneously?
- The ObjectContext class is responsible for ___________ with the underlying database.
- When using Fluent API in Entity Framework, the .ToTable() method is used to specify the database ___________ for an entity.
- 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?
- What is the primary role of the OleDb data provider in ADO.NET?