When working with non-query commands, what does the ExecuteNonQuery method return as a result?
- Error message
- Result set
- Rows affected
- Scalar value
The ExecuteNonQuery method in ADO.NET returns the number of rows affected by the command, typically used with INSERT, UPDATE, DELETE queries. It does not return a result set or a scalar value. If there's an error, it may throw an exception.
Loading...
Related Quiz
- What is the difference between a DataRow and a DataTable in ADO.NET?
- Scenario: In a Windows Forms application, you have a requirement to allow users to select multiple items from a ListBox control. How would you implement this feature?
- The SqlDataAdapter is used to fill a ________ with data from a database.
- Which LINQ operator is used to perform set operations like union, intersection, and difference on sequences?
- Optimistic concurrency relies on ___________ to detect conflicts.