How to find out records number affected?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Which was updated by the sql UPDATE instruction.
Is there some objects returning the number
or I have to do explicit SELECT nevertheless?

Thanks in advance.
 
Ivan said:
Which was updated by the sql UPDATE instruction.
Is there some objects returning the number
or I have to do explicit SELECT nevertheless?

Thanks in advance.

the Update method itself return the "Rows Affected"...
 
How do you invoke UPDATE in first place?
Take note that DbCommand.ExecuteNonQuery returns affected rows count.
 
Back
Top