Interview Questions

If you run this, what does it return? select applock_mode('public', 'SalesApp', 'Transaction')

Microsoft SQL Server FAQs


(Continued from previous question...)

If you run this, what does it return? select applock_mode('public', 'SalesApp', 'Transaction')

Answer
The type of lock being held by an application that requested it.
Explanation
This command returns the lock mode held by an application that was requested with the sp_getapplock procedure.

(Continued on next question...)

Other Interview Questions