This chapter discusses another SQL Server locking feature called application locks, which allow you to place locks on an application’s resources as identified by name. One of the most common scenarios where application locks are beneficial is serializing access to T-SQL code in the client application, similar to critical sections and mutexes.
Application Locks Overview
Application locks allow an application to place a lock on an application resource, which is not related to database objects and is identified by name only. The lock would follow the regular rules in terms of lock compatibility, ...