UnlockAllObjects (clsServer)

Notes

  Cette fonctionnalité sera supprimée dans la prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et modifiez dès que possible les applications qui utilisent actuellement cette fonctionnalité.

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.

Syntaxe

bRet = object.UnlockAllObjects

Paramètres

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

  • object
    An object of ClassType clsServer.

Exemple

The following example removes all current locks:

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

Voir aussi

Référence