This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The EnumLocks method returns a QueryResults object that enumerates the resource locks held by an instance of Microsoft SQL Server.
A QueryResults object that contains one result set defined by these columns.
Name of the database in which the locked resource is defined.
If applicable, the name of the index against which the lock is applied.
A text description of a locking mode. For more information about interpreting values, see the description of the system table syslockinfo column req_mode.
Process ID of the process requesting the lock.
An integer indicating lock application status. For more information about interpreting values, see the description of the system table syslockinfo column req_status.
If applicable, the name of the table against which the lock is applied.