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 an example of ordinal data?
What is sql connection in ado.net?
What Is Difference Between Ado And Ado.net?
What are the steps to connect to a database?
What is the advantage of ado.net?
What is csdl entity framework?
What is ado and rdo?
What do you know about ado.net's methods?
The answers which posted above is not satisfied my requirement? Can some one post teh exact answer? Thanx
What are the steps you will take to improve performance? Will you use dataset or datareader?
What are the different ado.net namespaces are available in .net?
Can we do database operations without using any of the ado.net objects?
What is data control techniques?
Is it possible to load multiple tables in a Dataset?
Explain what is datagrid with an example?