Partager via


LockObject (MDStore Interface)

ms134675.note(fr-fr,SQL.90).gifRemarque :
  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 LockObject method of the MDStore interface locks an object to prevent multiple users from concurrently changing the object.

Applies To:clsCube, clsDatabase, clsPartition

Syntaxe

object.LockObject(ByVal LockType As OlapLockTypes, ByVal LockDescription As String))

Paramètres

  • object
    The object to lock.
  • LockType
    One of the lock types defined in the OlapLockTypes enumeration. For more information, see OlapLockTypes.
  • LockDescription
    A string containing a description of the lock, available to other applications attempting to obtain a lock.

Notes

It is sometimes possible for an application to request an additional lock on an already locked object. For example, other applications can request and receive an olapLockRead lock on an object already locked using the olapLockProcess lock. For more information on how lock types interact, see OlapLockTypes.

Voir aussi

Référence

MDStore Interface
UnlockObject (MDStore Interface)

Aide et Informations

Assistance sur SQL Server 2005