![]() |
---|
下一版本的 Microsoft SQL Server 将删除该功能。请不要在新的开发工作中使用该功能,并尽快修改当前还在使用该功能的应用程序。 |
The Update method of the Command interface saves the definition of a command object in the metadata repository.
Applies To:clsDatabaseCommand
语法
object.Update
参数
- object
The command object to update.
备注
Use this method when you want to save changes to an object. Any changes made to an object will have session scope until this method is executed.
示例
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