Black Friday prices end in 22d 19h 35m — See the sale

Author: Brent Ozar

I make Microsoft SQL Server go faster. I love teaching, travel, cars, and laughing. I'm based out of Las Vegas. He/him.

I’m Just Gonna Leave This Here

Sometimes my value as a blogger is to make complex topics simple, or to deliver industry news to you, or to entertain you. Sometimes, it's just to keep you posted on things that are happening in the industry.

So with that in mind, at Microsoft FabCon Barcelona this week, there was a partner day for Microsoft partners. From there, Eelco Drost (shout out to the smart & fun folks at MasterMinds) shared a slide:

Read more about I’m Just Gonna Leave This Here 45 comments — Join the discussion
News & Opinion

Announcing a New Way to Reinforce Your Resume: My Alumni List.

I hope you never have to look for another job.

However, if you do, I wanna give you as much reinforcement as I can. If you're the kind of person who attends my live classes, pays attention, asks questions, and does the lab homework, you deserve to be able to brag about that. You deserve a public record of your work, something you can point to on my site that links directly to your LinkedIn, and a certificate you can put on your LinkedIn.

Read more about Announcing a New Way to Reinforce Your Resume: My Alumni List. 2 comments — Join the discussion
Performance Tuning

“But NOLOCK won’t hurt me if I’m using an index!”

Your queries won’t tune themselves. My 2027 Live Class Season Pass is $995 (normally $4,395), with live Fundamentals and Mastering classes plus recordings. Register by October 31 to join Fundamentals Week, November 2–6. See the pass.

NOLOCK is bad and you probably shouldn't use it, but every time I mention that publicly, the pushback just keeps coming. I don't know why people so firmly believe that their situation couldn't possibly be affected by bad/random data from NOLOCK.

Read more about “But NOLOCK won’t hurt me if I’m using an index!” 20 comments — Join the discussion
Performance Tuning

Database Animations: How SQL Server’s JSON Indexes Work

Your queries won’t tune themselves. My 2027 Live Class Season Pass is $995 (normally $4,395), with live Fundamentals and Mastering classes plus recordings. Register by October 31 to join Fundamentals Week, November 2–6. See the pass.

By popular demand, SQL Server 2025 added JSON indexes. You can eat the cake of being able to store practically schema-less JSON blobs as part of each row, and have it too by querying specific values quickly.

Read more about Database Animations: How SQL Server’s JSON Indexes Work 12 comments — Join the discussion
T-SQL & Development

Set Your Application Names Before You Wish You Had.

When you run monitoring queries like sp_BlitzWho and sp_WhoIsActive, you wanna see the program names that are running the queries. It's super useful when you've got multiple apps running on the same servers, or when you've got apps scattered across end user computers.

If you don't set the program names, you'll either end up with empty strings, or your dev tool's default name, like Core .Net SqlClient Data Provider, which doesn't tell you jack.

Read more about Set Your Application Names Before You Wish You Had. 10 comments — Join the discussion
News & Opinion

Free Webcast: You Shouldn’t Use SQL Agent for Batch Processes.

SQL Server Agent is a solid scheduler for database administration and simple, database-local automation. In a small to midsize shop, it is the right tool for backing up databases, checking for corruption, and maintaining statistics.

But as a shop grows in complexity, Agent starts running into its limits, and teams find themselves duct-taping together workarounds to cover the gaps.

Read more about Free Webcast: You Shouldn’t Use SQL Agent for Batch Processes. 1 comment — Join the discussion

How to Download the Stack Overflow Database for Postgres

You wanna learn PostgreSQL, and you wanna use a sample database with big real-world data, the same kinds of issues that pop up with real-life data distribution skew, and fun query challenges.

StackOverflow.com provides a free data dump in XML format with their data as of 2024-04. The data is licensed under cc-by-sa 4.0, which means whenever you use it for public demos, you'll need to link back to their original data source there, just as I did.

Read more about How to Download the Stack Overflow Database for Postgres 1 comment — Join the discussion