The complaint arrives the same way at shop after shop. The nightly processing that used to finish by 03:00 now finishes at 05:30, or CPU sits higher than anyone remembers, and the first question in the room is when did the workload change. Nobody knows. The deploy log says Tuesday, a new customer went live Thursday, and somebody is sure a job schedule was touched.
When did the workload change on my SQL Server database? When did the workload change is answered by comparing each hour's statement mix and cost with the 24 hours before and after it in Query Store. The hour where the mix shifts most, and stays shifted, is the boundary. Everything between two boundaries is a regime with its own defining statements.
Database Health Monitor has a report built for exactly this question. It is called Workload Regimes, and it reads the history Query Store already keeps and cuts it into a few named periods with an exact boundary between each. Here is why that beats the way most people hunt for the answer.
Workload Regimes is one of the reports in Database Health Monitor. It runs against your own servers, and it takes about a minute to have this same screen open on one of them.
Why comparing two windows misleads you
The usual move is to pick a bad day and a good day, line the top queries up side by side and look for differences. It works, sometimes. The trouble is that you chose where to cut.
Cut a day too late and the change you want is smeared across both halves. Cut in the middle of the shift and each side contains a little of the old workload and a little of the new, so every query looks like it moved a bit and none of them look guilty. You end up arguing about the window instead of the cause.
Totals fool you in a second way. A flat total cost can hide a swap, where a heavy statement went away and another took its place. A rising total can be nothing more than a busier week. Neither tells you whether the nature of the work changed.
If you have already used the comparison pages, such as the one covered in Workload Families: Read the Chart Before the Grid, you know they answer "how do these two periods differ". Regimes answers the question that comes first: where should the periods start and end.
Measure the mix, then the volume
The honest number is not how much the server did. It is what the server was doing, and how that proportion moved.
For every hour, the report looks at the statements that ran in the 24 hours after it and the 24 hours before it. It turns each side into shares of total cost, using the top 200 statements by cost plus one bucket for everything else, and measures how far apart the two share lists are. That is the total variation distance: half the sum of the absolute differences. A big number means a different mix.
Two details make this trustworthy on real servers. With 7 days or more of history, windows are compared hour of day against hour of day. A daily cycle cancels out, and a job that quietly moved from 01:00 to 02:00 still shows up. And a change that is purely volume, the same statements doing 30 percent more work, is caught separately from the mean hourly total.
Then the noise is trimmed. A boundary has to be the strongest within 12 hours either side. Two boundaries within 6 hours of each other merge into the stronger. No regime is shorter than 24 hours. What remains is a short list you can read in a minute.
When did the workload change? What the page shows
Find it in the tree under a database, at Query Store, then Workload Regimes. The full reference lives on the Workload Regimes help page.
The chart is cost per hour as a line. Each regime gets a colored band, and each boundary gets a dashed marker with its date and time. The toolbar picks a 7, 30 or 90 day window (30 is the default) and the metric: CPU, Duration, Reads or Writes. A sensitivity setting splits regimes at changes of 10 percent of the workload mix on High, 20 on Normal and 35 on Low. Changing it does not read Query Store again, so you can slide it back and forth freely.
Each boundary also carries a label, which is often the whole story:
- New code: statements that were not running before make up more than half of the shift.
- Schedule moved: the same statements, running at different hours.
- Volume: the mix is stable but the amount of work changed.
- Mix change: everything else.
That label alone often ends an argument. If the boundary says Schedule moved, the deploy was never the problem.
Reading a boundary
The Regimes grid lists each period with its start, end, hours, cost and executions per hour, plus its top five statements by share of cost. That last column is what turns a date into an explanation, because it is the shortlist of what the server was busy with in that period.
Double click a regime or its band and the Boundary tab opens for the boundary that starts it. It lists every statement whose share moved by half a percentage point or more: new ones, vanished ones, risers and fallers, with the share before and after. Up to 7 days either side of the boundary are compared, which is the same look at both sides of the line, taken from where the line actually is.
Right click a regime to jump to Workload Change and Plan Regressions. Related links lead to Schema Change Analytics and What Changed for the same hours, so the next question is one click away.
What to do with the answer
Take the boundary date and time to whoever owns the change calendar. A named hour is far easier to match against a deploy, a customer onboarding or a changed job schedule than a vague "sometime last week". Often there is a match within minutes. When there is not, the statements that appeared or rose at that boundary tell you where to look in the code.
Know the limits before you rely on it. It needs SQL Server 2016 or newer, Query Store on for the database, and VIEW DATABASE STATE. The cost per hour comes from sys.query_store_runtime_stats. With fewer than 3 days of history you get the plain hourly chart and no regimes. And overlaying schema change and restart events, or alerting when a regime starts, is not built in this version.
For a client, the value is rarely the chart itself. It is the shorter outage conversation. Every hour spent debating which week things went wrong is an hour of degraded service that someone is paying for. Finding the boundary first turns a long argument into a short, checkable fact.
What to check on your own server
- Confirm Query Store is on for the database and holds at least 3 days of history
- Open the 30 day view and note every boundary the chart marks
- Switch the metric between CPU, Duration, Reads and Writes and see which boundaries survive
- Double click the regime that starts nearest the slowdown and read the statements that appeared, vanished or rose
- Compare each boundary date with your deploy log and job schedule changes
Try Database Health Monitor Today
Workload Regimes marks the exact hour a database's statement mix shifted and names the statements that defined each period, so nobody has to guess what changed. Database Health Monitor shows it on every instance you connect, in the time it takes to open the report.
Download Database Health Monitor and run the Workload Regimes report against your own server. There is nothing to configure first, and you will know inside a few minutes whether it tells you something you did not already know.

