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
Confirmation of TCP/IP connection states
Need help to figure out this Active Directory issue on a new domain with Netlogon issues, in the midst of migration
Backup to NAS with Symantec Backup Exec 2010
create a div with rounded top and bottom and sides with an outer glow
Power Point files won't open from samba share
Working with multiple MS SQL Server database in applicatie
XPages: can't get a simple dialog box working
How to remove new line from a string
magento limiting number of returned items in product collection call
Unattended Windows 7 Installation answer file not working