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 / umar topia
Have one column with in Database table with datatype as
TimeStamp and while selecting the row we will read the
TimeStamp value, which we can compare at the time of updation,
if both values are same then we can update that row
otherwise we can resist the user from updating saying that
someone has updated the row, you can't update it.
Is This Answer Correct ? | 13 Yes | 1 No |
Post New Answer View All Answers
Define data adapter?
What are basic methods of dataadapter?
What is meant by executenonquery?
Which namespaces are used for data access?
Define Execute Scalar?
What are the different methods by which we can populate a dataset?
What is partial class?
Some important instruction regarding ADO.NET connection string ?
What are the core objects of ADO.NET?
What is the difference in an abstract class and an interface?
What is the role of data provider in ado.net?
Which is the feature of ado.net?
Explain how can we load multiple tables in to dataset?
Explain how to find the given query is optimised one or not?
How to aggregating data across related tables?