SQL Server Lock

  • I have a SQL Job that keeps locking.

    After further investigation using sp_lock and master.dbo.sysLockinfo, it seems to be waiting to get a

    Exclusive Page Lock on Object ID of 0.

    Cannot find what object has an ID of 0.

    List of Locks for the process.

     

    SPIDDBIDObjIDTypeModeStatus
    6171127727120TableIXGranted
    6170ExtentXGranted
    6170IndexXGranted
    6170DBSGranted
    6170PageXGranted
    6170PageXWaiting

    Does anyone know what an object id 0 means?

  • I'd be interested as well.

    RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."

  • Basically whenever you see and ObjID of 0 it indicates an object for which there is no concept in sysobjects.  Thus, databases, indexes, pages, extents, etc... will always have an ObjID of 0.

    /*****************

    If most people are not willing to see the difficulty, this is mainly because, consciously or unconsciously, they assume that it will be they who will settle these questions for the others, and because they are convinced of their own capacity to do this. -Friedrich August von Hayek

    *****************/

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply