UnlockAllObjects (clsServer)
附註: |
---|
下一版的 Microsoft SQL Server 將不再提供此功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。 |
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.
語法
bRet = object.UnlockAllObjects
參數
- bRet
A Boolean variable. This value is set to True if the method is successful and False otherwise.
- object
An object of ClassType clsServer.
範例
The following example removes all current locks:
' Assume dsoServer is connected to Analysis Services.
dsoServer.UnlockAllObjects