Which ADO.NET object is responsible for managing transactions?
- SqlCommand
- SqlConnection
- SqlDataAdapter
- SqlTransaction
SqlTransaction object is responsible for managing transactions in ADO.NET. It provides methods to begin, commit, or rollback transactions, ensuring that database operations are performed atomically and consistently.
Loading...
Related Quiz
- What is the primary benefit of using LINQ in C#?
- In ADO.NET, what is the role of parameters in non-query commands?
- Scenario: Your application uses parameterized queries, but you suspect it may still be vulnerable to SQL injection. What steps would you take to assess and improve its security?
- In LINQ to Entities, what does "Entities" refer to?
- The "DataSource" property of a DataGrid or DataGridView control is typically set to a ___________.