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

Which one of the following objects is a high-level abstraction of the connection and command objects in ado.net?

836


What is the procedure to call a Stored Procedure of Back End in ADO (ActiveX Data Object) and RDO (Remote Data Objects)?

797


What are the 3 major types of connection objects in ado.net?

766


oledbdataadpter with ms access in c#.net giving exception System.Data.OleDb.OleDbException while writing adapter.update(dataset,"tabname"); how to update the database from dataset?

2146


how you will deal result set? How do you sort a dataset?If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?

792


What is ado.net architecture?

689


What are the namespaces used in ado.net for data access?

707


What is execute scalar in ado.net?

709


Can datareader hold data from multiple tables?

878


What are the steps you will take to improve performance?

669


Explain how can we load multiple tables in to dataset?

704


What are the data providers used in ado.net

746


Does dapper use ado.net?

789


How can we add/remove row's in "datatable" object of "dataset"?

783


Explain why canot we use multiple inheritance and garbage collector paralelly in .net?

802