Link to home
Start Free TrialLog in
Avatar of carlosmonte
carlosmonteFlag for United States of America

asked on

tableAdapter Update only SQL table fields that where modified in web page

Hi,

I'm designing a web application where different users could be updating the same records.
I would like to make sure that only the changed fields by one user are updated one by one so there is no concurrency violation.

What is the best method to design this?

Its my first time working with SQL 2005 so i'm not sure about the tableAdapters "optimistic concurrency" option. Will this take care of it by itself?

thank you
SOLUTION
Avatar of Birky
Birky
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of carlosmonte

ASKER

Birky:

In your suggestion of locking using a field in the DB what happens if the app crashes on a user that is in edit mode in a page. this means the record will stay locked for other users.
how could this be avoided?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
these are good comments but i want to research these options first.
Experts, is it ok if i leave it open a little longer? thanks