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
Windows 7 WGA says my legitimate copy is NOT GENUINE
can read ssl.crt/server.crt and ssl.key/server.key on centos about ssl of apache
why can't autocomplete after div is loaded via ajax when autocomplete is in the div box
safely shutdown sharepoint on sbs 2003
couple of things missing from Exchange 2010?
Anyone knows what this fruit is called in english and if I can buy it in the USA somewhere even online
Outlook 2007 hangs while sending large emails (only over HTTPS, not over VPN or while on LAN)
Script to email newly created computers. Need to add groups & users accounts also.
Windows 7 screen saver goes crazy "Bubbles"
Unable to open PDF's in Outlook 2007, ""There was an error opening this document. This file cannot be found."