Which ADO.NET class is commonly used to execute non-query commands?
- SqlCommand
- SqlConnection
- SqlDataAdapter
- SqlDataReader
The SqlCommand class in ADO.NET is commonly used to execute non-query commands such as INSERT, UPDATE, and DELETE. It represents a SQL statement or stored procedure to execute against a SQL Server database.
Loading...
Related Quiz
- Scenario: You need to read data from a large SQL Server database. Which ADO.NET data reader should you use, and why?
- The ___________ property of a data-bound control specifies the source of data for binding.
- Which ADO.NET control is commonly used for data binding in Windows Forms applications?
- Migrations in Entity Framework Code-First are used to keep the database schema _________ with the application's data model.
- In LINQ to SQL, the DataContext class represents the ___________.