When multiple users attempt to modify data at the same time
Ex user 1 is updating record at same time user2 deleted
record sucessfully.now user1 has press update button . how
to handle concurrency
Answer Posted / kiranmadiraju
You can use one primary key and one timestamp field to sort
out the problem of concurrency.
The steps are like this
1.Fetch the record from database and store the primary key
value and timestamp in the session.
2.Update the same record with new values other fields using
the same session values for primary key and timestamp fields.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What is difference between ado and other data object?
Can we do database operations without using any of the ado.net objects?
What is ado.net tutorial?
What DataReader class do in ADO.NET ?
What is data adapter in ado.net with example?
Explain how to call the sql commands asynchronously in ado.net version 2.0?
What is ado.net architecture?
What is executequery?
Which is better entity framework or ado.net?
What does datareader object do?
What is the current version of entity framework?
What are the advantages of ado.net?
Explain the overview of ado.net architecture?
Describe briefly an ADO.NET Dataset ?
How to pass values into a datatable?