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