Posts by Brent Ozar

[Video] Office Hours: Icy Strait Point, Alaska

Videos
0
I’m on a boat! We took an Alaska cruise with some friends aboard the Norwegian Jewel. En route to Icy Strait Point, Alaska, I took your top-voted questions from https://pollgab.com/room/brento. Here’s what we covered: 00:00 Start 01:40 RollbackIsSingleThread: Hi Brent! If a high-quality blog post involves original ideas, T-SQL, a great demo, and images to…
Read More

[Video] Office Hours: Open Q&A on Microsoft Databases

Videos
2 Comments
I took your top-voted questions from https://pollgab.com/room/brento while recovering from a late night of partying. Here’s what we covered: 00:00 Start 01:00 VegasDBA: Loved the Always-On Availability Group Episode! You mentioned how awful the dashboard is for monitoring. Can you recommend any scripts, custom alerts, or dashboards to keep a better eye on things? 03:26…
Read More

Yes, Cardinality Estimation Keeps Changing After SQL Server 2014.

Execution Plans
4 Comments
About 10 years ago, Microsoft made changes to the Cardinality Estimator (CE) which caused some problems for SQL Server upgrades. When folks upgraded to SQL Server 2014, they also casually switched their databases’ compatibility level to the latest version, because for years that hadn’t really affected query plans. They just figured they wanted the “latest…
Read More

TRY/CATCH Doesn’t Always Work.

T-SQL
11 Comments
If you’re using TRY/CATCH to do exception handling in T-SQL, you need to be aware that there are a lot of things it doesn’t catch. Here’s a quick example. Let’s set up two tables – bookmarks, and a process log to track whether our stored proc is working or not: Transact-SQL DROP TABLE IF EXISTS dbo.Bookmarks;…
Read More

[Video] Office Hours: Open Q&A About Databases

Videos
0
I went through your top-voted questions from https://pollgab.com/room/brento plus hit live ones from the TikTok viewers. Here’s what we covered: 00:00 Start 00:52 chandwich: If SSMS had a dark mode option that was equally as good as the existing light mode, would you use it? Any idea why it doesn’t exist yet? RE: The on-call…
Read More
I'm killing your query.

Contest: What’s Your Biggest Database Regret?

Company News
60 Comments
PAST ME, WHAT WERE YOU THINKING We all make mistakes. I certainly have. I’ll give you a recent one, actually: when we designed the database for SQL ConstantCare®, when we’re storing diagnostic data like wait stats, we thought these 3 columns would be good for identification: user_id server_name instance_name Because a single user would never…
Read More

[Video] Office Hours: Database Q&A

Videos
0
I went live on TikTok and took your top-voted questions from https://pollgab.com/room/brento: Here’s what we covered: 00:00 Start 00:23 Andrea Hardesty: Do you have any recommendations for reproducing parameter sniffing issues? I have a copy of a production DB. I want @param=222 to use the plan compiled with @param=111 like it did in production. In…
Read More

PASS Data Community Summit Prices Are About to Go Up!

#SQLPass
0
Next Tuesday, pricing on the 3-day tickets for the PASS Data Community Summit goes up to $2,295. But if you register right now, plus use coupon code BRENTO24, it’s just $1,945. It’s one in-person conference that covers Microsoft SQL Server, Azure, PostgreSQL, Snowflake, Oracle, and more. So many of us (me included!) are working with…
Read More

[Video] Office Hours Q&A: Abrupt Exit Edition

Videos
1 Comment
Last week, we had an abrupt intro, and this week, we have an abrupt ending when my camera overheats, hahaha: We went through your top-voted questions from https://pollgab.com/room/brento. Here’s what we covered: 00:00 Start 00:43 cha2rg: We have an OLTP table size of 4TB and rows of 6 billion. Scheduled an old data deletion job…
Read More

Geographic Sharding is Usually a Pretty Bad Idea.

Development
1 Comment
Let’s say you built a web app and it became globally popular. You’ve got users scattered across North America, Europe, and Asia. In theory, you could shard your data globally: build 3 sets of SQL Servers, one on each continent, and split up their data. In reality, this usually creates more problems than it solves.…
Read More

[Video] Office Hours: Abrupt Intro Edition

Videos
4 Comments
Today’s Office Hours had a ton of technical difficulties because it was my first live stream on both Twitch and TikTok. The first few minutes were cut off, and you can’t see the questions onscreen. Nonetheless, there are good answers in here, so let’s do it:   Here’s what we covered: 00:00 Start 00:03 LivingTheDream:…
Read More

[Video] Office Hours: Professional Development Q&A

Videos
0
I was supposed to be on a flight to Mexico, but had to cancel at the last minute. While waiting for my favorite bagel shop to open, I went through your professional development questions from https://pollgab.com/room/brento. Here’s what we covered: 00:00 Start 03:25 Asking for a friend: As a prod dba, should I know what…
Read More