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 can i do insert more data with insert query with more select statment linqToSQL?
esx 4 update 01 no 64bit server will install
Number of records when appending query via VBA
Looking for Video Recording Software for Samsung Cameras
Database Driven Website
Classic ASP form to email sending empty email?
What is differnce between machine.config and web.config?
Buckling calculation using Tetmajers formula
VB.Net 2008 Problem passing data between forms
Formview - System.NullReference Exception when using findcontrol