Microsoft
Software
Hardware
Network
Question : check if record is already locked
When a user retrieves a record, I would like to be able to check if the record has been locked by someone else. If not, I want to be able to lock it, run an update statement if needed and release the record again. I want that check to be done when the data is retrieved, regardless of whether the user chooses to change something on the form.
Which trigger should I use and how do I go about checking whether the record can be reserved or not?
Answer : check if record is already locked
if u use an "for update NOWAIT" in sql statement, THEN IT raise an exception saying it is locked, otherwise continue with updation.
Random Solutions
VMWare ESX 4 Update Manager and failing Remediation for certain patches
Roaming Profiles on Windows 2008 R2 Remote Desktop Services server not working correctly
2 ways in ASP.NET to open a different page?
delphi Run once
Joomla Module
Installation Failed on Routing and Remote Access
CSS Tabbed Layout IE6 Question, Part 2
Content disappearing after I hit a link?
web forms: xForms or javascript forms: which one is the best?
Moved a Dolpin 7 website to a new server and I get an error message.