Which ADO.NET class is commonly used to execute SELECT statements and retrieve data from a database?
- SqlCommand
- SqlConnection
- SqlDataAdapter
- SqlDataReader
The SqlDataAdapter class in ADO.NET is commonly used to execute SELECT statements and retrieve data from a database. It acts as a bridge between a dataset and a data source for retrieving and saving data.
Loading...
Related Quiz
- When working with hierarchical data, what are the primary benefits of using DataRelations?
- You are designing a multi-tier application where data needs to be transferred between the presentation layer and the database. Which ADO.NET component plays a crucial role in managing data synchronization in this architecture?
- Parameterized queries help mitigate the risk of ________ attacks.
- In LINQ to SQL, which operation is used to create new records in a database table?
- The use of ___________ can help in caching query results and improving query performance.