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


Please Help Members By Posting Answers For Below Questions

What do you mean by performing asynchronous operation using command object?

729


What are the main differences between classic ado and ado.net?

728


What is the use of ADO.NET and XML web services?

783


What is difference between ado.net and asp net?

729


What are the parameters that control most of connection pooling behaviours?

791


How to aggregating data across related tables?

753


Explain the architecture of ado.net?

784


What is row state?

695


What is the difference between Dataset. clone and Dataset.copy?

753


What is ado.net in vb net?

662


What is the executescalar method?

770


Explain the difference between data reader and data set?

670


Which database is the ado.net sql connection object designed for?

799


Which is the best method to get two values from the database?

707


Which namespaces are used for data access?

834