The ExecuteNonQuery Method will also return the number of records affected
by the query, which will tell you whether any records were updated
regardless of whether or not an error was thrown.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
That could be the case. It depends on who implements the
provider. They might decide not to throw an exception,
but returns 0 on the ExecuteNonQuery method. The
ExecuteNonQuery method will return the number of records
successfully updated.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.