SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


DB Blocking Automated E-mail Alerting with Blocker SP ID & query's


DB Blocking Automated E-mail Alerting with Blocker SP ID & query's

Author
Message
Subhash Chadra
Subhash Chadra
SSC-Enthusiastic
SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)

Group: General Forum Members
Points: 105 Visits: 133
Comments posted to this topic are about the item DB Blocking Automated E-mail Alerting with Blocker SP ID & query's
chuck.hamilton
chuck.hamilton
SSC Eights!
SSC Eights! (960 reputation)SSC Eights! (960 reputation)SSC Eights! (960 reputation)SSC Eights! (960 reputation)SSC Eights! (960 reputation)SSC Eights! (960 reputation)SSC Eights! (960 reputation)SSC Eights! (960 reputation)

Group: General Forum Members
Points: 960 Visits: 437
Rather than run the job every 2 minutes why not use SQL Server Agent to run the job when it detects a blocked session?

1) Set server "blocked process threshold (s)" to the number of seconds after which you want the alert fired
2) Create an alert in the agent
  • type="SQL Server performance condition alert",
  • counter = "Processed blocked",
  • alert if counter ="rises above" ,
  • value = "0".
3) On the "response" tab, execute your job.(or any job that queries who's blocking who) and email it to yourself.
Subhash Chadra
Subhash Chadra
SSC-Enthusiastic
SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)SSC-Enthusiastic (105 reputation)

Group: General Forum Members
Points: 105 Visits: 133
Hi chuck.hamilton,

Thanks for your suggestion, It's also a batter way to get the blocking detail. I will try this as well.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search