P
Peter Zuber
Dear NG
A prerequisite to handle dbconcurrency when using DataAdapters and Stored
Procedures is to SET NOCOUNT OFF in the an Update SP for example. As a
consequence, when the update statement fails due to a concurrency issue, the
record count returned will be zero. The DataAdapter will interpret this
condition as a concurrency conflict and throw a DBConcurrencyException.
My question now: As Microsoft recommends in general to SET NOCOUNT ON in
stored procedures we have an argument with our database guys. They don't
want to SET NOCOUNT OFF. How do you handle the issue. Do you SET NOCOUNT OFF
for update and delete statements or do you handle the concurrency issue in
the stored procedures on your own (raising an error...)
And what is the reason for the recommendation to SET NOCOUNT OFF in general
anyway? Performance?
Please let me know your experiences
Thank you in advance
Cheers,
Peter
A prerequisite to handle dbconcurrency when using DataAdapters and Stored
Procedures is to SET NOCOUNT OFF in the an Update SP for example. As a
consequence, when the update statement fails due to a concurrency issue, the
record count returned will be zero. The DataAdapter will interpret this
condition as a concurrency conflict and throw a DBConcurrencyException.
My question now: As Microsoft recommends in general to SET NOCOUNT ON in
stored procedures we have an argument with our database guys. They don't
want to SET NOCOUNT OFF. How do you handle the issue. Do you SET NOCOUNT OFF
for update and delete statements or do you handle the concurrency issue in
the stored procedures on your own (raising an error...)
And what is the reason for the recommendation to SET NOCOUNT OFF in general
anyway? Performance?
Please let me know your experiences
Thank you in advance
Cheers,
Peter