[!참고] 이 기능은 다음 버전의 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