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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Answer / shweta
we can have to use exclusive locks on the table thats why
we can't change data at a time..
Is This Answer Correct ? | 3 Yes | 1 No |
How do we invoke queries from the application
What is the functionality of data provider in ado.net?
What are the different methods by which we can populate a dataset?
HOW TO FILL GRID VIEW WITH OUT USING SQLDATASOURCE AND PROGRAMING?
What are the ado.net connection pooling parameters?
What is the provider being used to access oracle database?
Can I use One Data Set for More than one Data Adapter?
If a table contains 20000 records. In a page at each time 100 records to be displayed.
What is the difference between executequery and executenonquery?
What DataReader class do in ADO.NET ?
Describe briefly an ADO.NET Dataset ?
What are the several execute methods of ado.net?