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 an example of ordinal data?

1046


What is sql connection in ado.net?

896


What Is Difference Between Ado And Ado.net?

975


What are the steps to connect to a database?

977


What is the advantage of ado.net?

955


What is csdl entity framework?

970


What is ado and rdo?

860


What do you know about ado.net's methods?

1053


The answers which posted above is not satisfied my requirement? Can some one post teh exact answer? Thanx

1967


What are the steps you will take to improve performance? Will you use dataset or datareader?

930


What are the different ado.net namespaces are available in .net?

942


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

932


What is data control techniques?

895


Is it possible to load multiple tables in a Dataset?

1000


Explain what is datagrid with an example?

1033