Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Script to create an alert

$
0
0
Hi,Does anyone have a sample script that will create an alert [b]when the performance counter "General Statistics:Processes blocked" > 0, "SQL Server: Locks – Lock Wait Time (ms)" > 5000, and SQL Server: Locks – Number of Deadlocks/sec > 0.[/b]Also the alert will trigger a job called "CaptureBlock".Thanks

Viewing all articles
Browse latest Browse all 3145

Trending Articles