Hi Everyone,
Now that I've built a few small application with SQL Back end, I've decided to build an application which will have multiple users accessing the same SQL database record at the same time. I need to avoid things like "Dirty reads" where two user access the same records at the same time and the both trying to change the same field to different values. I would like to maybe lock the record once a user have retrieve it. If a second user try to access the same record or records, I want to notify the second user that they record is currently in use. How do I implement such handle?
In addition, I will be also be working with Dataset that fill a gridview. User will be editing the gridview record and then update the dataset which will update the sql table. How do I lock all the records that has retrieve by the dataset?
Thanks
Anthony