Ask a DBA team what happens when a monitoring alert fires, and most describe the same sequence: an email goes out, and then a person has to notice it, open a console, investigate, and decide what to do. That sequence works — right up until it is 2 a.m., the on-call engineer is asleep, and the issue sits unresolved for forty minutes because nobody saw the email yet.
SQL Diagnostic Manager for SQL Server (SQL DM) was built to close that gap. Its Alert Actions and Responses feature lets an alert do more than notify — it can execute a remediation script, run a SQL Agent job, open a ServiceNow ticket, send an SNMP trap, or page the right team automatically, before anyone has to manually respond. The IDERA tutorial How To Configure Alert Actions and Responses with SQL Diagnostic Manager for SQL Server walks through exactly how this is configured, and it is the basis for the workflow below.
Alert actions and responses in SQL Diagnostic Manager let a DBA configure what happens automatically when an alert condition is met — beyond an email notification. Configurable action providers include running a T-SQL script, executing a PowerShell command, kicking off a SQL Agent job or job step, opening a ServiceNow ticket, sending an SNMP trap, writing to the Windows event log, or forwarding to System Center — configured per metric, per server, or across the whole monitored environment.
How To Configure Alert Actions and Responses with SQL Diagnostic Manager for SQL Server
What Can Alert Actions and Responses Do in SQL Diagnostic Manager?
Alert actions turn a threshold breach into a configured reaction rather than a message waiting for a human to read it. In SQL DM, an alert rule can:
Send an email notification, customized with variables such as instance name, database name, and metric value.
Execute a T-SQL script — for example, truncating a transaction log when log space runs critically low, or rebuilding an index once fragmentation crosses a threshold.
Run a PowerShell script against the monitored instance for broader remediation tasks.
Kick off a SQL Server Agent job, or a specific step within a job, rather than the whole job.
Run a program or batch file already deployed in the environment.
Open a ticket in ServiceNow, routing the incident directly into the team’s existing ITSM workflow.
Send an SNMP trap to a network management console, integrating SQL DM’s alerting with tools that already use SNMP.
Write the event to the Windows event log, or push it to SQL DM’s built-in Newsfeed.
Forward the event through System Center, where that integration is already in place.
Trigger a prescriptive analysis to generate index, query, or configuration recommendations tied to the condition that fired.
Why Email-Only Alerting Leaves Teams in Reactive Mode
Email notifications are useful, but they share the same weakness regardless of how well-tuned the underlying threshold is: they depend on a person seeing the message, understanding it, and acting on it, in that order, before the underlying problem gets worse. During business hours, with an attentive team, that gap might be minutes. Overnight, on a weekend, or during a busy on-call rotation covering dozens of servers, that gap can stretch into hours — and for issues like a filling transaction log or a runaway blocking chain, hours matter.
Customers who have configured automated responses describe a genuine shift in posture: from reactive firefighting, where someone is always racing a growing problem, to issues resolving themselves — or at minimum being fully documented in a ticket — before users even notice. The alert still fires. What changes is that something useful happens the moment it does, instead of a message sitting in an inbox.
How Alert Actions Work in SQL Diagnostic Manager
Alert actions live under Tools > Alert Actions and Responses in the SQL DM console. Out of the box, two default rules exist — a Newsfeed status update rule and a SQL Diagnostic Manager service status rule — and every other rule is added as needed, with no limit on how many an environment can have.
Building a rule is a three-step process. Step one sets the conditions: which instances it applies to (a single instance, or a subset defined by a tag), which metric or metrics trigger it, an alert-rank threshold for prioritizing high-importance metrics, whether the metric’s severity must have been unchanged for a set period before it fires (which prevents duplicate alerts on every collection cycle), and an optional time window — for example, restricting a rule to overnight hours only. Step two selects the action providers: email, a T-SQL or PowerShell script, a SQL Agent job or job step, a ServiceNow ticket, an SNMP trap, a program or batch file, or a combination of several at once. Step three fine-tunes the rule’s specifics, such as the exact script to run or the exact escalation window.
Rules can also be imported and exported — including from the Idera community site — so a rule built by one team, or shared by another SQL DM customer, does not need to be rebuilt from scratch.
What Alert Actions Can Automate — Real Examples
The tutorial highlights a few concrete patterns that show how far this goes beyond notification:
Killing the lead blocker automatically when a blocking chain crosses a defined severity, rather than waiting for a DBA to open a session viewer.
Automatically running a T-SQL script to truncate a transaction log the moment a log-full-percent alert reaches a critical threshold, passing the affected instance and database name into the script as variables.
Rebuilding or reorganizing indexes automatically once fragmentation on a specific metric crosses a threshold.
Building an escalation rule that emails a specific team only when a high-ranking metric has stayed in a critical state, unchanged, for longer than a defined window — so routine transient spikes do not trigger an escalation, but a sustained real problem does.
Opening a ServiceNow ticket automatically so an incident is documented and routed into an existing service-management workflow, with no manual ticket creation required.
A Practical Workflow for Automating Your First Alert
Automated response does not need to start as an environment-wide project. The following workflow keeps it manageable:
Pick one metric your team already understands well and responds to the same way every time — a filling transaction log, index fragmentation, or a recurring blocking pattern are common starting points.
Confirm the current, manual response — the exact script, job, or ticket your team creates today when this alert fires.
Open Tools > Alert Actions and Responses and build a new rule: set the condition (instance, tag, metric, rank, and any time window), then attach the action provider that matches your current manual response.
Add severity-unchanged logic where appropriate, so the action fires once for a sustained condition rather than repeatedly on every collection cycle.
Pair the automated action with an email or ServiceNow ticket so the team has a record of what happened, even when the response itself is automatic.
Run it for two to four weeks, confirm it behaves as expected, and only then expand to the next recurring alert.
Revisit the Idera community rule library periodically for patterns other SQL DM customers have already built and shared.
What Automated Responses Accelerate vs. What the DBA Must Decide
Alert Actions Can
The DBA Must Determine
Execute a script, job, ticket, or page the instant a condition is met
Which alerts are well-understood enough to automate first
Apply per metric, per server, or across a tagged group
How granular to get — one server at a time, or a broader policy
Suppress duplicate firing while severity is unchanged
How long a condition should persist before it counts as “real”
Document every action taken via ticket, event log, or email
Whether an automated fix still needs a human follow-up review
Run independent of whether anyone is watching the console
When automation should escalate to a person instead of resolving silently
Automated responses accelerate the reaction. The DBA still owns the judgment.
Where This Fits in a Crowded Monitoring Market
Redgate SQL Monitor, SolarWinds Database Performance Analyzer/SQL Sentry, and Quest Spotlight/Foglight each invest heavily in marketing smarter detection — adaptive alerting, machine-learning anomaly scoring, query and table tuning advisors. That is a genuinely useful capability, and it answers a real question: is something wrong? But it is only half the operational story. The question that matters most to a DBA at 2 a.m. is what happens next — and that is the question fewer competitors lead with.
SQL Diagnostic Manager answers it directly. Alert actions and responses are not a black-box automated decision; they are rules a DBA configures, can see in full, and can edit or disable at any time. For teams comparing tools primarily on detection sophistication, it is worth asking every vendor the same follow-up question: once your tool detects a problem, what can it actually do about it without a person in the loop?
What to Measure After You Automate a Response
Automated response is easy to under-sell internally because, done well, the visible result is an incident that never became a page. Three numbers are worth tracking from the start:
The number of alerts resolved or documented automatically versus the number still requiring a manual response, for the metric you automated first.
After-hours pages and on-call interruptions for that same metric, before and after automation.
Mean time to resolution for the automated condition, compared against the manual baseline from the weeks before the rule was configured.
None of these require new tooling — they can be pulled from existing alert history, ServiceNow ticket timestamps, and a shared tracking sheet. The before/after comparison tends to be the most persuasive artifact for getting buy-in to automate the next recurring alert.
Frequently Asked Questions
Is this the same as just forwarding an alert email to a script?
No. Alert actions are configured natively inside SQL DM’s rule engine, with conditions (instance, tag, metric, rank, severity duration, time window) evaluated before any action provider runs, and support for multiple action providers on a single rule — not a separate email-parsing workaround.
Can I combine multiple actions on one alert?
Yes. A single rule can, for example, run a T-SQL remediation script, open a ServiceNow ticket, and send an email notification all from the same triggering condition.
Will this cause duplicate tickets or pages for the same ongoing issue?
Not if the severity-unchanged condition is used. Rules can be configured to fire only once a metric’s severity has remained the same for a defined period, rather than on every collection cycle.
Does this require professional services to configure?
No. Alert Actions and Responses is part of the existing SQL DM license, accessible from the Tools menu, and a first rule can typically be built and tested in well under an hour.
What if our team doesn’t have ServiceNow?
ServiceNow is one of several available action providers. Teams without it can still automate through T-SQL/PowerShell scripts, SQL Agent jobs, SNMP traps, or email — and add ServiceNow later without rebuilding existing rules.
Alert fatigue and reactive firefighting are not solved by better dashboards alone — they are solved by closing the loop between detection and response. If your team is still relying on someone noticing an email today, the fastest way to find out how much time automation can give back is to pick one well-understood, recurring alert and automate the response this week.