Automation Solution for Deadlock

  • Dear Members,

    I need some suggestion and solution.....

    I am working with the applications that are running for 24 hrs and possible of lakhs of transaction daily. so deadlock occurrence is also high for me. Every time time i need to kill if a deadlock occurs through Kill command. Its a time being process. So i need to automate this that will kills the processes which are being blocked for maximum time. Is any possibility to automate this.

    Please reply me back. I will be grateful to you.

    Thanks & Regards,

    Sri Sagar.P

  • - you need to revise your application !

    - you can elevate sqlservers sensitivity to deadlock detection and intervention using sp_configure "blocked process threshold "

    - activate trace 1222 to get an idea which statements get into deadlock situations so you can work out a solution to those.

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • srisagar_p (2/24/2009)


    so deadlock occurrence is also high for me. Every time time i need to kill if a deadlock occurs through Kill command

    Are you talking about blocking or deadlocks? SQL has a deadlock detector and it will automatically resolve any deadlock that it finds by killing one of the processes involved.

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

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