Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is difference between ado and other data object?

968


Can we do database operations without using any of the ado.net objects?

1041


What is ado.net tutorial?

1000


What DataReader class do in ADO.NET ?

1167


What is data adapter in ado.net with example?

1105


Explain how to call the sql commands asynchronously in ado.net version 2.0?

979


What is ado.net architecture?

970


What is executequery?

992


Which is better entity framework or ado.net?

1119


What does datareader object do?

1059


What is the current version of entity framework?

1020


What are the advantages of ado.net?

958


Explain the overview of ado.net architecture?

1121


Describe briefly an ADO.NET Dataset ?

1174


How to pass values into a datatable?

1179