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