Block 1 - Schedule Trigger
- Type / Role
- n8n-nodes-base.scheduleTrigger - scheduleTrigger
- Config choices
- Version 1.3
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 ...
n8n-nodes-base.scheduletrigger, n8n-nodes-base.microsoftsql, n8n-nodes-base.merge, n8n-nodes-base.code, n8n-nodes-base.emailsend, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Mohamed Abubakkar.
Original n8n.io sourceThis 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 by severity, and sends a beautifully formatted HTML email report only when issues are found. Zero noise when everything is healthy.
SQL Server developers, DBAs, and backend engineers who manage production MSSQL databases and want weekly automated diagnostics delivered to their inbox — without manual querying or third-party monitoring tools.
Schedule Trigger fires every Monday at 7 AM.
4 SQL nodes run in parallel — slow queries, missing indexes, index fragmentation, wait stats.
Merge node combines all results into a single stream.
Code node filters by field signature, scores severity (critical/warning), and builds the HTML email.
Send Email dispatches the report only when issues exist.
• Add MSSQL credential with VIEW SERVER STATE permission
• Add SMTP or Gmail credential for email
• Adjust severity thresholds in the Code node to match your workload
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Send weekly SQL Server health reports via email |
|---|---|
| Complexity | intermediate |
| Nodes | 12 |
| Categories | DevOps, AI Summarization |
| Author | Mohamed Abubakkar |
| Published | 23 Apr 2026 |
Use the JSON export at /data/workflows/15256/15256.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 ...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps, AI Summarization use case.