LISTLOCKS

Returns a list of all users who have locks on blocks for the currently selected database.

Syntax

LISTLOCKS [appName dbName]
ParameterDescription

appName dbName

Optional. Both parameters required if no application and database are selected.

Example

LISTLOCKS;