Posts by Brent Ozar

The Mom Test

So You Wanna Build an App

AI
5 Comments
I get a lot of emails like this: Hi! I built an app. Can you take a look at it, give me your feedback, and then help get the word out to your readers? No. I wish I could, but no. But this happens so often that I wanna write a blog post explaining the…
Read More

[Video] Office Hours at the ICC Wales Before Bits

Videos
0
I flew into Wales a couple days early to get used to the time zones, and showed up at the conference center where SQLBits would be located. Let’s go through your top-voted questions from https://pollgab.com/room/brento on a very chilly morning: Here’s what we covered: 00:00 Start 01:02 Jersey: Has Microsoft fixed any of the bugs…
Read More

There’s a Bug in sys.dm_exec_query_plan_stats.

SQL Server 2025
6 Comments
When you turn on last actual plans in SQL Server 2019 and newer: Transact-SQL ALTER DATABASE SCOPED CONFIGURATION SET LAST_QUERY_PLAN_STATS = ON; 1 ALTER DATABASE SCOPED CONFIGURATION SET LAST_QUERY_PLAN_STATS = ON; The system function sys.dm_exec_query_plan_stats is supposed to show you the last actual query plan for a query. I’ve had really hit-or-miss luck with this…
Read More

[Video] Office Hours in the Vegas Home Office

Videos
0
When you’ve got questions about architecture, development, or best practices, post ’em at https://pollgab.com/room/brento, and upvote the ones you’d like to see me cover. It’s like free bite-sized consulting. Here’s what we covered this week: 00:00 Start 01:37 DBAInAction: Hi Brent, could you please suggest an archival/purging strategy for multi-TB tables to free up disk…
Read More
We aged like fine wine, not like SQL Server 2016

SQL Server 2016 Support Ends in 90 Days.

SQL Server 2016
14 Comments
On July 14, 2026, Microsoft’s extended support ends for SQL Server 2016. Brent Ozar Unlimited circa 2016 They will offer Extended Security Updates that you can buy for 3 more years, either through Azure or your licensing partner. The price is stunning: Year 1, July 2026-2027: 75% of the original license price Year 2, July…
Read More
Office Hours

[Video] Office Hours: Microsoft Database Q&A

Videos
6 Comments
Let’s go through a LOT of your top-voted questions from https://pollgab.com/room/brento on a VERY early Saturday morning. 00:00 Start 01:52 DBAInAction: Hi Brent Microsoft just announced Automatic Index Compaction for Azure SQL and Fabric. do you see this finally killing off the traditional ‘index maintenance’ debate? Also, any gut feeling on whether this will eventually…
Read More
How you doin

How Multi-Column Statistics Work

Statistics
4 Comments
The short answer: in the real world, only the first column works. When SQL Server needs data about the second column, it builds its own stats on that column instead (assuming they don’t already exist), and uses those two statistics together – but they’re not really correlated. For the longer answer, let’s take a large…
Read More
I'm killing your query.

SQL Server 2025 CU4 Adds Automatic Updates

Humor
34 Comments
April 1, 2026: Big news for everyone who has to manage Microsoft SQL Server, whether they’re DBAs, sysadmins, or developers. Seven years ago, Microsoft announced automatic, downtime-free hot patching of the SQL Server engine in Azure SQL DB. The tail end of that post had a teaser in it: Well, I guess enough of you…
Read More