Deadlock list

  • Hi All

    Without using Trace we need last week dead lock list

    for this any script please suggest us.

    Thanks in advance.

  • Do you log when a deadlock occurs?

  • You might be able to pull some from the system health extended events session. Whether it goes back a full week though is doubtful. There's no permanent store of deadlocks that have occurred unless you have created one.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Yes Gail

    Using Extended Events only we get the complete list of the last week dead lock

    My team lead was asking the list of deadlocks still dead lock are available in the server

    How can we get the complete list of dead locks any script for this please suggest me.

    Tx

  • GilaMonster (1/9/2013)


    There's no permanent store of deadlocks that have occurred unless you have created one.

    You can't get the ' list of deadlocks available in the server' because there's no such thing. SQL does not store deadlock information for long periods. Prior to SQL 2008, it didn't store it at all. If you want to track deadlocks, you need either a custom trace or a custom extended events session or a traceflag and archiving of the error logs.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 5 posts - 1 through 4 (of 4 total)

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