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
slideshow does not work in firefox
Exporting mailboxes to PST in Exchange 2007 running on SBS 2008
riddle vb.net calling unmanaged c++ dll
Mail stuck in Lotus oubox
Mirror Hard Drive
Operator '=' is not defined for type 'DBNull' and type 'Integer' - how to fix
Redirecting Users Based on Input
Can anyone guide me how to download MEMO software back to N900 ?
IAS Server not responding
Windows XP Taskbar won't auto-hide