When a database is slow, you need answers fast — not guesswork.
A lightweight T-SQL diagnostic toolkit that helps you quickly identify:
- What SQL Server is waiting on
- Which queries are causing the problem
- Whether blocking or deadlocks are involved
No agents. No setup. Just run and diagnose.
USE SQLToolbox;
EXEC SQLToolbox.WaitStatsSummary;
EXEC SQLToolbox.TopSlowQueries;→ Instantly see:
- Root cause (wait stats)
- Problem queries
- Where to investigate next
Identify what SQL Server is actually waiting on.
- Detect locking, IO, CPU pressure
- Includes interpretation and next steps
Find the most expensive queries in the plan cache.
- CPU, duration, reads
- Query text included
- Quick optimization targets
See active blocking chains in real time.
- Who is blocking who
- Session details
- Running statements
Read deadlock graphs from system_health.
- Latest deadlocks
- XML output for deep analysis
Quick snapshot of:
- Active requests
- Top CPU queries
When something is slow:
- WaitStatsSummary → identify problem type
- TopSlowQueries → find expensive queries
- BlockingMonitor → check contention
- LivePerformanceAnalyzer → confirm current activity
Or run:
EXAMPLES/basic_workflow.sql
| Feature | Community | PRO |
|---|---|---|
| Wait stats | ✔ | ✔ |
| Slow queries | ✔ | ✔ |
| Blocking & deadlocks | ✔ | ✔ |
| Live diagnostics | ✔ | ✔ |
One-command full analysis (RunAll) |
❌ | ✔ |
| HTML report | ❌ | ✔ |
| Health score | ❌ | ✔ |
| Historical tracking | ❌ | ✔ |
| Automation (SQL Agent) | ❌ | ✔ |
If you find yourself running multiple scripts manually every time…
SQL Toolbox PRO turns this into a complete diagnostic system:
- 🔥 One-command full analysis (
RunAll) - 📊 HTML performance report
- 🧠 Health score
- 📈 Historical tracking
- ⚙️ Automation support
👉 Save time. Stop guessing. Diagnose faster.
👉 Get PRO version: https://mariovista01.gumroad.com/l/SQLToolBox_PRO
Run:
INSTALL/10_SQLToolbox_Community_INSTALL.sqlThen:
USE SQLToolbox;
EXEC SQLToolbox.WaitStatsSummary;sql-toolbox/
│
├── INSTALL/
│ └── 10_SQLToolbox_Community_INSTALL.sql
│
├── src/
│ ├── WaitStatsSummary.sql
│ ├── TopSlowQueries.sql
│ ├── BlockingMonitor.sql
│ ├── DeadlockDetector.sql
│ └── LivePerformanceAnalyzer.sql
│
├── EXAMPLES/
│ └── basic_workflow.sql
│
└── README.md
- Query Store integration
- Backup status checks
- Extended performance insights
- More automation options
If you find this useful:
- ⭐ Star the repo
- 💬 Share feedback
- 🚀 Upgrade to PRO
MIT (Community Edition)
This is the toolkit I use when production is slow and I need answers immediately.


