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
Upload a file to a ftp server usgin c# and asp.net
Invalid object reference error
C# sharing variables or data between different classes
Access VBA to stop all macros
EtherChannel on Cisco 2960 switch intermittent dropped packet
Gmail Like File Upload
New install of SBS 2008 continuously downloads 2.5GB per day (WSUS disabled)
Delivery not authorized, message refused. 550-5.7.1 Message targeted to organization's federated delivery mailbox.
VMware ESXI help
SBS2003 - Exchange - Cannot open shared mailbox