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 / 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


Please Help Members By Posting Answers For Below Questions

What is XML serialization

976


How to bind the controls(best practice) comboboxes to the data in the dataset?

1003


Explain the difference between data reader and data set?

870


Explain the dataadapter class in ado.net?

1125


What is ado or jdbc?

872


Can we load multiple tables in a dataset?

1062


What are the connected and disconnected modes in ado.net?

854


Explain executenonquery?

1067


What is the default provider in ado.net?

907


What are two types of transaction supported by ado.net?

937


Do we use stored procedure in ADO.Net?

940


Can datareader hold data from multiple tables?

1114


How to generate a single aggregate?

940


Which architecture does Datasets follow?

985


What is connected architecture in ado.net?

973