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 to have a Stable Microsoft Outlook profile with 4-5GB+ data w/ MS Exchange Mail server ?
Upgrade mixed mode Windows 2000 forest/domain to Windows 2008 R2 forest/domain
Moving Domino 8 server
What is the default for ExpiresDefault
802.1q trunk
Install .PFX file to personal store - Certificate Authority
Oracle forms and reports in Oracle 10g
Problem connecting Netapp FCP LUN on SERVER 2008
Print jobs starting very slowly on HP laser
asp.net-easy question