Brent Ozar
banner
brento.bsky.social
Brent Ozar
@brento.bsky.social
I make databases go faster. I love teaching, travel, laughing, and collecting vintage sports cars. Las Vegas. He/him, pan.
sarchasm (noun): the distance between your level of seriousness and my retort
November 26, 2025 at 6:05 PM
The SQLBits call for speakers is out! Their speaker guidance is quite detailed, sitting down with a cup of coffee to absorb it and start thinking about the sessions I wanna submit: sqlbits.com/speak/
Speak
Find out more about joining the annual line up of world-class speakers at SQLBits.
sqlbits.com
November 26, 2025 at 1:21 PM
Query Exercise Answer: Generating Big TempDB Spills

In last week's Query Exercise, I challenged you to play some code golf to generate big spills with tiny T-SQL. Today, I'm going to walk you through my thought process - the initial attempts I tried and failed with, and the discoveries I made…
Query Exercise Answer: Generating Big TempDB Spills
In last week's Query Exercise, I challenged you to play some code golf to generate big spills with tiny T-SQL. Today, I'm going to walk you through my thought process - the initial attempts I tried and failed with, and the discoveries I made along the way, because I think it makes for fun storytelling. In the past, when I've seen people trying to generate a lot of data quickly, they've cross-joined SQL Server's built-in system tables like sys.all_objects or sys.all_columns.
www.brentozar.com
November 26, 2025 at 1:17 PM
I can't believe I have to say this out loud, but no, that NOLOCK hint on the table you're doing an UPDATE or DELETE on isn't helping. learn.microsoft.com/en-us/sql/t-... (And I've run into this 3 times in the last 3 weeks.)
November 25, 2025 at 1:05 PM
This Is It! Our Black Friday Sale Ends Sunday.

You work with Microsoft SQL Server, Azure SQL DB, and Amazon RDS SQL Server. When people call in saying the server is slow, you're the one who has to take the call. It's up to you to figure out the bottleneck, which queries are causing that…
This Is It! Our Black Friday Sale Ends Sunday.
You work with Microsoft SQL Server, Azure SQL DB, and Amazon RDS SQL Server. When people call in saying the server is slow, you're the one who has to take the call. It's up to you to figure out the bottleneck, which queries are causing that bottleneck, what changes to make to the queries, and whether index or server-level tweaks can help.
www.brentozar.com
November 24, 2025 at 1:16 PM
Reading about how Postgres 18 does index skip scans made me wonder whether Microsoft SQL Server has that feature, and boom, there goes an hour of my life writing demos. Next up, adding a module to the Mastering Index Tuning class to talk through it. www.pgedge.com/blog/postgre...
pgEdge
Fully distributed PostgreSQL
www.pgedge.com
November 21, 2025 at 6:05 PM
The First SQL ConstantCare Badges Just Went Out

Ever wonder how big your database estate is compared to others? Whether you've got more servers, more databases, more workloads, or more problems? Well, if you're one of my SQL ConstantCare® customers, check your email: our first set of badges just…
The First SQL ConstantCare Badges Just Went Out
Ever wonder how big your database estate is compared to others? Whether you've got more servers, more databases, more workloads, or more problems? Well, if you're one of my SQL ConstantCare® customers, check your email: our first set of badges just went out! With SQL ConstantCare®, your SQL Servers send us diagnostic data once per day, and our systems analyze it and email you specific, actionable recommendations to make your databases faster and more reliable.
www.brentozar.com
November 21, 2025 at 3:02 PM
WATCH AS WINDOWS INTEGRATES LOTUS 1-2-3 WITH MIAMI VICE www.youtube.com/watch?v=jW8t... WAIT DON'T ANSWER
Steve Ballmer Sells Windows 1.0
www.youtube.com
November 21, 2025 at 1:05 PM
The first few answers are coming in, and it's fun to see people working through it: T-SQL Query Exercise: Generate Big Spills www.brentozar.com/archive/2025...
T-SQL Query Exercise: Generate Big Spills - Brent Ozar Unlimited®
When I was testing SQL Server 2025’s new ability to limit TempDB usage with Resource Governor, I wrote a few fun diabolical demos. One of them was to generate giant spills to TempDB, quickly. When…
www.brentozar.com
November 20, 2025 at 6:05 PM
Functions in the WHERE Clause Are Bad… Right?

Nah, not necessarily. SQL Server's query optimizer behavior keeps changing with every freakin' version. Let's illustrate it with a simple query against the Stack Overflow Users table: CREATE INDEX Location ON dbo.Users(Location); GO SELECT COUNT(*)…
Functions in the WHERE Clause Are Bad… Right?
Nah, not necessarily. SQL Server's query optimizer behavior keeps changing with every freakin' version. Let's illustrate it with a simple query against the Stack Overflow Users table: CREATE INDEX Location ON dbo.Users(Location); GO SELECT COUNT(*) FROM dbo.Users WHERE Location = N'Ahmadabad, India' OPTION (RECOMPILE); Because there are a lot of people in Ahmadabad, SQL Server gets that estimate correct, which is really important when you start joining this table to other tables, like finding their number of comments or posts:
www.brentozar.com
November 20, 2025 at 1:15 PM
term of the day: vibe dbaing
November 20, 2025 at 1:05 PM
sure you decorate but if you don't put the Christmas Lo-Fi Girl stream on 24/7 are you even alive www.youtube.com/watch?v=C4qJ...
christmas lofi music🎄cozy radio to get festive to
YouTube video by Lofi Girl
www.youtube.com
November 20, 2025 at 9:53 AM
Everything's going wrong today, so screw it - I'm quitting work at 3PM, having a glass of wine, and answering your database questions live on the stream, starting now: twitch.tv/brentozar
BrentOzar - Twitch
Office Hours: Ask Me Anything About SQL Server and Azure SQL DB
twitch.tv
November 19, 2025 at 10:54 PM
the perfect email signature line is here
November 19, 2025 at 6:05 PM
T-SQL Query Exercise: Generate Big Spills

When I was testing SQL Server 2025's new ability to limit TempDB usage with Resource Governor, I wrote a few fun diabolical demos. One of them was to generate giant spills to TempDB, quickly. When you're looking at an actual (not estimated) query plan, and…
T-SQL Query Exercise: Generate Big Spills
When I was testing SQL Server 2025's new ability to limit TempDB usage with Resource Governor, I wrote a few fun diabolical demos. One of them was to generate giant spills to TempDB, quickly. When you're looking at an actual (not estimated) query plan, and you see a yellow exclamation point on a sort operator, that means: SQL Server made a guess about how much memory it would need to accomplish that sort…
www.brentozar.com
November 19, 2025 at 1:16 PM
SQL Server 2025 Is Out, and Standard Goes Up to 256GB RAM, 32 Cores!

Today marks the official birthday of Microsoft SQL Server 2025. Here's where to download the evaluation version. Here are the top things you wanna consider as you talk to your managers, developers, and end users. The feature…
SQL Server 2025 Is Out, and Standard Goes Up to 256GB RAM, 32 Cores!
Today marks the official birthday of Microsoft SQL Server 2025. Here's where to download the evaluation version. Here are the top things you wanna consider as you talk to your managers, developers, and end users. The feature differences between 2025 Enterprise and Standard have been revealed, and the news for Standard Edition folks is spectacular: it now supports up to 32 CPU cores and 256GB RAM!
www.brentozar.com
November 18, 2025 at 4:24 PM
Microsoft SQL Server 2025 Developer Edition is available for download now: www.microsoft.com/en-us/sql-se... Build appears to be 17.0.1000.7.
November 18, 2025 at 4:10 PM
Flashback to one of SQL Server's more amusing bugs: if you were dumb enough to run UPDATE with a NOLOCK hint, you got database corruption: support.microsoft.com/en-us/topic/... And frankly, you deserved that.
KB2878968 - FIX: Nonclustered index corruption may occur when you run a complex UPDATE statement together with a NOLOCK hint against a table in SQL Server - Microsoft Support
Fixes an issue in which nonclustered index corruption occurs and an error message is logged in SQL Server. This issue occurs when you run a complex UPDATE statement against a table in SQL Server…
support.microsoft.com
November 13, 2025 at 6:05 PM
I Wish SQL Server Had These Four Innovations.

I love SQL Server, and I'm excited for the release of 2025. I think the query processing keeps getting better, which means your apps are gonna go faster, with less code changes. The AI stuff is a little fluffy, and I don't think time will be kind to…
I Wish SQL Server Had These Four Innovations.
I love SQL Server, and I'm excited for the release of 2025. I think the query processing keeps getting better, which means your apps are gonna go faster, with less code changes. The AI stuff is a little fluffy, and I don't think time will be kind to it, but I totally understand why Microsoft felt like they had to chase that buzzword.
www.brentozar.com
November 13, 2025 at 1:16 PM
Reading: Starting Your First Data Warehouse: A Practical Learning Guide www.jamesserra.com/archive/2025...
Starting Your First Data Warehouse: A Practical Learning Guide | James Serra's Blog
JAVASCRIPT IS DISABLED. Please enable JavaScript on your browser to best view this site.
www.jamesserra.com
November 13, 2025 at 1:05 PM
How to Query JSON Data Quickly in SQL Server, Part 2: SQL Server 2025

SQL Server 2025 and .NET 10 bring several new improvements to storing JSON natively in the database and querying it quickly. On the SQL Server 2025 side, the two big ones are the new native JSON indexes and the new JSON_CONTAINS…
How to Query JSON Data Quickly in SQL Server, Part 2: SQL Server 2025
SQL Server 2025 and .NET 10 bring several new improvements to storing JSON natively in the database and querying it quickly. On the SQL Server 2025 side, the two big ones are the new native JSON indexes and the new JSON_CONTAINS function. Let's see their improvements in action. On the .NET 10 side, EF 10 not only supports the new JSON data type, but on databases of compatibility level 170 or higher, EF will automatically migrate JSON data from NVARCHAR(MAX) data types over to JSON the next time you do a migration, as explained in the…
www.brentozar.com
November 12, 2025 at 1:17 PM