This procedure checks for blocking exceeding a duration of @BlockingDurationThreshold. Log the lead blocker to a table (only when not in @Debug mode). @Debug parameter controls whether to email ...