Job failing due to deadlocking

  • A job (order_status_alerts) fails intermittently.

    the error shows :-

    Transaction (Process ID 113) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. [SQLSTATE 40001] (Error 1205). The step failed.

    I know what is deadlocking but I dont know how to resolve this issue.

    Any help will be appreciated.

    Sushant

    MCTS,MCP

    British Virgin islands.

    Regards
    Sushant Kumar
    MCTS,MCP

  • Switch traceflag 1222 on. That will result in a deadlock graph been written to the error log every time a deadlock occurs. Post the result of that graph here.

    DBCC TRACEON(1222,-1)

    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 2 posts - 1 through 1 (of 1 total)

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