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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *