Share via


UnlockAllObjects (clsServer)

Note

  This feature will be removed in the next version of Microsoft SQL Server. Do not use this feature in new development work, and modify applications that currently use this feature as soon as possible.

The UnlockAllObjects method of an object of ClassType clsServer removes all locks issued by the current session from objects in the server's object model.

Syntax

bRet = object.UnlockAllObjects

Parameters

  • bRet
    A Boolean variable. This value is set to True if the method is successful and False otherwise.

  • object
    An object of ClassType clsServer.

Example

The following example removes all current locks:

' Assume dsoServer is connected to Analysis Services.
dsoServer.UnlockAllObjects

See Also

Reference