Compartilhar via


UnlockAllObjects (clsServer)

ObservaçãoObservação

  Esse recurso será removido na próxima versão do Microsoft SQL Server. Não utilize esse recurso em desenvolvimentos novos e modifique, assim que possível, os aplicativos que atualmente o utilizam.

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.

Sintaxe

bRet = object.UnlockAllObjects

Parâmetros

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

  • object
    An object of ClassType clsServer.

Exemplo

The following example removes all current locks:

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

Consulte também

Referência