ADO.net Locking system

V

vishal

Hi all,
If i am using Dataset in my ASP.net APplication & i am
expecting many people visting & updating data on my site.
wht will happen if many people update dataset at the same
time...how locking system works in ado.net ?
 
M

msnews.microsoft.com

If you use the native methods, the second update will fire a concurrency
exception, which you can handle. The DataSet keeps the original rows, for
comparison, as well as the edited rows. If the original rows are changed,
..NET will take over and make the update fail on those that retrieve before
another user's update and attempt to update their data after.

Dino Esposito's MS Press book has a great chapter on handling concurrency.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

**********************************************************************
Think Outside the Box!
**********************************************************************
 

Ask a Question

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.

Ask a Question

Top