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 is fill method in ado.net?

538


Explain the difference between ado and ado.net?

505


What is the default timeout specified for "sqlcommand.commandtimeout" property?

537


Which ado.net object is very fast in getting data from the database?

642


What is the difference between sqldatareader and sqldataadapter?

488






describe the dataset object in ado.net.

520


What is bubbled event?

535


Define Execute Scalar?

551


What are the advantages using ado.net?

535


What is serialization and de-serialization in .net? How can we serialize the dataset object?

515


What are advantages of microsoft-provided data provider classes in ado.net?

541


What are the core objects of ADO.NET?

582


What are dataproviders?

546


What is microsoft ado?

513


differance between ADO vs ADO.Net?

548