3

if a query has two update statements what executenonquery will return? Will it club the row count affected in both the update statements OR will return the count updated in last statement?

Alina Anjum
  • 1,178
  • 6
  • 30
  • 53
nectar
  • 9,525
  • 36
  • 78
  • 100

1 Answers1

1

It return summary of total row affected of all statement. For example, if first statement result is 3 row affected and second statement is 12 row affected, then the return value would be 15

Dfirmansyah
  • 398
  • 2
  • 10