BLOCKING BY SPID -2

  • This morning we had a problem on one of our production machines. We detected that the process was blocked by spid -2. If we looked at sysprocesses spid -2 was not in there.

    If we did sp_lock -2 we got a result .

    What is the meaning of a process with spid -2 ?

  • /*sp_who will return:

    spid (system process id)

    where spid 0 - 50 = MSSQL Reserved spid's

    and spid >= 51 = User/application spid's

    ecid (execution context id)

    where 0 = parent thread

    and 1,2,3...n = sub threads

    status (process status)

    loginname

    blk = spid for blocking process

    where 0 = no blocking process

    and -2 = blocking orphan transaction

    dbname = database used by process

    cmd = SQL Server command executing for process

    */

    USE master

    EXEC sp_who

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

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