Introduction to Data Concurrency in ADO.NET

Types of Concurrency Control

In general, there are three common ways to manage concurrency in a database:

  • Pessimistic concurrency control: A row is unavailable to users from the time the record is fetched until it is updated in the database.

  • Optimistic concurrency control: A row is unavailable to other users only while the data is actually being updated. The update examines the row in the database and determines whether any changes have been made. Attempting to update a record that has already been changed results in a concurrency violation.

  • "Last in wins": A row is unavailable to other users only while the data is actually being updated. However, no effort is made to compare updates against the original record; the record is simply written out, potentially overwriting any changes made by other users since you last refreshed the records.


Concurrency Control in ADO.NET and Visual Studio

1. The Version Number Approach
2. The Saving-All-Values Approach



























Read Users' Comments (0)

0 Response to "Introduction to Data Concurrency in ADO.NET"

Post a Comment