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
Most Efficient Way Of Appending to a Byte[]
Can't print to Dymo Labelwriter 400 turbo after adding labelwriter 450 turbo drivers on windows 2003 terminal server
excel vba script needed
Exchange SCR between versions
Boot Acer Ferrari 1200 laptop from dvd to upgrade vista to windows 7
Javascript form validation problems
iPhone 4 in the USA
export the sas dataset to create a table in my sql database
Change Mailbox Alias
how can i get a list of client inbox rules through powershell