Templates / Send weekly SQL Server health reports via email

Send weekly SQL Server health reports via email

Ready for 3.0

by Mohamed Abubakkar ✓ · 273 views · created 2026-04-23 · DevOps, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 8 nodes and runs on a schedule (every day at 07:00). Along the way it connects Microsoft SQL.

How it runs

Trigger: On a schedule (every day at 07:00).

  1. top slow queries (Microsoft SQL): run a query
  2. blocking & wait stats (Microsoft SQL): run a query
  3. index fragmentation (Microsoft SQL): run a query
  4. missing indexes (Microsoft SQL): run a query
  5. Merge: merges the data from its input branches
  6. Code: runs custom JavaScript code
  7. Send Email: sends an email over SMTP

Services it uses

Microsoft SQL

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (5)

From the author

Description This workflow runs every Monday morning and automatically diagnoses the health of your SQL Server database across 4 dimensions — slow queries, missing indexes, index fragmentation, and server wait stats. It merges all results, scores each finding…

Excerpt from Mohamed Abubakkar's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.