SPID blocked by itself !

  • Hi all,

    I am new to SQL server.

    today i found that one SPid was blocking itself in the sysprocesses system table.

    in wht synario it is possible..?

    i m confused...

    thnks a lot for Any Help !

    Thnks & regards,

    Tushar

     

     

     

     

     

     

  • I can be because of parallel processing/fetching.

  • Microsoft defines it latch, a process is waiting for output from IO. In most of cases, the self-blocks can be unlatched. However, there is potential the self-lock will develop to a dead lock.

  • What was the process doing (Inserst, Updates, Deletes) ? Did any of the target tables have trigger(s) on them ? Were the table(s) being manipulated very large ? Have you been able to reproduce the self blocking ? Have you tried to capture the event(s) in profiler ? The answers to these questions may help ...

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

  • It has never happened to me as far as I'm aware, but Andras (of SQL Refactor fame) investigated a self-deadlock in SQL Server 2005 SP1 and wrote about it on his Blog

    Self deadlocking transactions in SQL Server 2005 SP1

     

    Best wishes,
    Phil Factor

  • Service Pack 4 introduced this:

    http://support.microsoft.com/default.aspx/kb/906344

  • thnks a lot.

     

    I got much info than expected !

Viewing 7 posts - 1 through 6 (of 6 total)

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