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
How do I restore Admin Share (Admin$) to 50 workstations on a Win2003 domain?
PHP and concurrent access to files ?
Outlook Contact Consolidation
How to Create Firebird Trigger to get AutoID by using Vb.net code
Send two files in email as attachment in unix shell scripting using ksh
Cisco Rv042 -- how do forwarding rules and firewall access rules work together? And PPTP
make hfsplus partition writable on ubuntu
Help needed to install Team Foundation Server 2010
Access 2007 Combo box synchronization
Export contact notes from an ACT! 6 database to an Excel or CSV file