Hi,
What is the best way to resolve following problem in a multi-user
environment ?
I have a table called TOTAL_SALES.
The table has 2 columns : "CarId" and "TotalSales"
I need to access a given car in the TOTAL_SALES table using the "CarId",
read the "TotalSales" value and increment this value with 1 unit.
Then, the "TotalSales" value will be used in other calculations. Another
user who accesses the TOTAL_SALES table will use the NEW "TotalSales" value.
However, there is a concurrency problem. When 2 users access the
TOTAL_SALES table at the same time. Both can read and use the same
"TotalSales" value before the other one incremented the value. Whta is the
best way to solve this in ADO.NET ?
Thanks
Jill