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 |
What is the difference between Response.Expires and Reponse.ExpiresAbsolute?
Explain ado.net features? Benefits? Drawbacks?
What is the default timeout specified for "sqlcommand.commandtimeout" property?
What do you know about ado.net's objects?
What are advantages of microsoft-provided data provider classes in ado.net?
If a table contains 20000 records . In a page at each time 100 records to be displayed. What are the steps u will take to improve performance? will you use dataset or datareader?
What is ole in excel?
What are the advantages and disadvantages of using datalist?
What happens when u try to update data in a dataset in .NET while the record is already deleted in SQL SERVER as backend?
What is connection pooling and what is the maximum pool size in ado.net connection string?
What is Data view?
Name which operations can you not perform on an ado.net dataset?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)