Basically i liked the output you showed me before, i would like it captured in a table, say hourly, and then at the end of the stored proc, we can add quick logic to say if:
- the # of undistributed cmd > 50000 OR
- the latency is > 1 min, then send an email with the condition, and have this SP running in a job, say every hour, alert works too but it is not capturing the result into a table for historical/trending purposes