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
What is aggregate root?
Can we do database operations without using any of the ado.net objects?
What are three methods for displaying data in a syncfusion datagrid
how we can fire event in databound coulm in datagfrid withot using button?
Is it possible to edit data in Repeater control?
What is ado full form?
What is microsoft ado?
What is the difference between ado.net and entity framework?
What is dao and ado?
Explain the advantages and disadvantages of using datalist?
How do you merge 2 datasets into the third dataset in a simple manner?
Explain why canot we use multiple inheritance and garbage collector paralelly in .net?
What is an ADO.Net?
Does ado.net use odbc?
What is the difference between oledb sql server and oledbdotnet provider?