SQL Server performance monitoring that shows what changed
SQL Server performance monitoring on the DMVs and Query Store: hour-of-day baselines, regressed query flags, plan forcing and online index fix scripts with undo, deadlocks from system_health. First database free.
Transcript
SQL Server slow right now? Read what changed. Drift flags compare each measure with the same hour on earlier days, then name the session, table or plan behind it.
The Now page sums up the demo SQL Server database for the last 7 days.
16 open flags, 6 of them high. Average active sessions are 2.1x the usual for 14:00.
Live now reads the server this moment with cheap read-only queries (5 second timeout).
Each measure is compared with the median around this hour over the last 14 days. The oldest open transaction is 18 min, against a usual 0 s.
Who is blocked, on which table, and by whom: session 74 from support_tool, idle in a transaction for 18 minutes.
The Drift page keeps each flag from when it was first raised until it resolves.
The blocking chain is a flag too, so it reaches the team even if nobody is watching the page.
This query is 6.2x slower and does 343x the work per execution, on a plan it never used in the last 14 days.
This report is 4.6x slower with the same work per execution. Same plan, so look at waits and blocking, not the plan.
Open the statement with the new plan.
Time per execution is drawn by plan. The new plan is its own line, starting where the flag was raised.
Query Store has both plans: plan 57 averages 14.8 ms, plan 41 averaged 2.4 ms.
ReinDB suggests forcing the faster plan while you fix the cause: statistics, a dropped index or parameter sniffing.
See it on the live demo at reindb.com. Read-only. Nothing installed in the database. Works with SQL Server 2016 and later, and Azure SQL.
Built on the DMVs and Query Store
ReinDB reads statement statistics from the plan cache, waits, sessions, locks and index usage through the DMVs, and Query Store for plan history. It needs VIEW SERVER PERFORMANCE STATE; nothing to install, no agent, no restart. Deadlocks come with both statements from the system_health session.
Tested on Amazon RDS for SQL Server.
What it flags
Every hour (or every 30 or 15 minutes) ReinDB measures each statement's time and reads since the last run and compares them with the median and spread for the same hour of the day over the last 14 days. Monday 9 AM is judged against other 9 AMs, not against 3 AM, so the batch peak is normal and a real regression stands out.
- Query regressions: a statement now slower per call than its usual for the hour, sized by the extra time it costs.
- New heavy statements and execution spikes.
- Database-wide drift: load, waits and waits, blocking and log volume against their usual.
- Each flag is NEW, ONGOING or RESOLVED, with the evidence on a chart and, if you mark deploys, the deploy next to it.
Ask in plain English (“load over the last 3 days”, “what flags fired this week?”) and the chart and caption come from the stored measurements.
Fix scripts a DBA can test
When a plan regresses, the fix script forces the good one back with Query Store. For slow statements ReinDB explains why (missing indexes, spills, disk-bound reads, rows examined per row returned) and writes the change as a script for change control, such as an index built WITH (ONLINE = ON), every line commented out and every step with its undo. It never runs by itself.
Prove the fix, then watch it
Beside a fix script, download a test kit for its index and statistics steps: prerequisite checks, before and after runs, go live, rollback and cleanup. Compare reads the two result files and shows times, reads, plans, a results checksum and a verdict. After the change, mark the fix and ReinDB compares the statement's time and reads before and after, and flags a new plan or the regression coming back.
Hosted, on-premises or air-gapped
Use it hosted (nothing to install; ReinDB connects over TLS with a read-only user from one fixed address), on your own Linux or Windows server for databases that never leave your network, including air-gapped ones, or deployed into your own AWS or Google Cloud account. See deployment options and pricing: your first database is free, with no time limit.
Read more
- Guide: the SQL statement tuning procedure (reading actual plans)
- Guide: optimizing stored procedure code
- Guide: finding unused and duplicate indexes
- Guide: database performance baselines
Or check a database once first, with no account: the free database health check.