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 we do with the object of ado.net dataset after using it?

1025


What is row state?

973


How to create dynamic gridview?

1029


If we are not returning any records from the database, which method is to be used?

1323


Explain the difference in an abstract class and an interface?

916


Which components of a data provider is used to retrieve, insert, delete, or modify data in a data source?

1135


Explain the different row versions available in table?

1051


What are the features of ado.net?

1029


Is datareader faster than datatable?

960


How do you implement locking concept for dataset?

991


Which control of the BindingNavigator returns the current position within the data source?

1162


Define partial class?

952


How to load multiple tables into a dataset?

1046


What is a dataview?

968


Explain the dataadapter class in ado.net?

1202