UnlockObject (Command Interface)
[!참고] 이 기능은 다음 버전의 Microsoft SQL Server에서 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 가능한 한 빨리 수정하십시오.
The UnlockObject method of the Command interface releases the lock previously established on a command object by the LockObject method.
Applies To:clsDatabaseCommand
구문
object.UnlockObject
매개 변수
- object
The object to unlock.
주의
If an application that created one or more locks terminates before it can free them using the UnlockObject method, the Analysis server automatically releases the locks when the connection with the application is closed.
예
The following example locks a command object so that it can be modified. It then unlocks the object and updates its repository information.
'Assume a command object (dsoCmd) exists.
dsoCmd.LockObect OlapLockRead, "Updating command, please wait."
' (Insert code to change command object here.)
dsoCmd.Update
dsoCmd.UnlockObject