Partager via


Update (Command Interface)

Notes

  Cette fonctionnalité sera supprimée dans la prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et modifiez dès que possible les applications qui utilisent actuellement cette fonctionnalité.

The Update method of the Command interface saves the definition of a command object in the metadata repository.

Applies To:clsDatabaseCommand

Syntaxe

object.Update

Paramètres

  • object
    The command object to update.

Notes

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.

Exemple

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

Voir aussi

Référence