DBA > Job Interview Questions > Microsoft SQL Server FAQs

If you run this, what does it return? select app

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(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 Job Interview Questions