Share via


LockObject (clsServer)

Note

  This feature will be removed in the next version of Microsoft SQL Server. Do not use this feature in new development work, and modify applications that currently use this feature as soon as possible.

The LockObject method of an object of ClassType clsServer locks the clsServer object to prevent multiple users from concurrently changing the object.

Syntax

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

Parameters

  • object
    An object of ClassType clsServer.

  • LockType
    One of the constants defined in the OlapLockTypes enumeration. For more information, see OlapLockTypes.

  • sLockDescription
    A string containing the description of the lock, available to other applications attempting to obtain a lock.

Remarks

For more information about object locking, see LockObject.

See Also

Reference