Posts by Brent Ozar

Identical twins

Yet Another Way Missing Index Requests are Misleading

Indexing
5 Comments
Graduates of my Mastering Index Tuning class will already be familiar with the handful of ways the missing index DMVs and plan suggestions are just utterly insane. Let’s add another oddity to the mix: the usage counts aren’t necessarily correct, either. To prove it, Let’s take MattDM’s Stack Exchange query, “Who brings in the crowds?” He’s…
Read More
Brent Reading Book

Poll: what’s in your development database?

SQL Server
When the developers at your company are working on building an app, where do they work? Production, a development database restored from production, or a development database with made-up contents? One-question poll, and you can watch the live results. I’ll post the results and my thoughts on Friday. I know what I see regularly out…
Read More
Brent Reading Book

4 Ways to Move Data Into a Reporting Server

Architecture
48 Comments
You’ve decided that you need to offload reports to a different SQL Server, and you’re willing to pay the costs. Here are the most common ways to move the data from production to a reporting server, arranged roughly from easiest-to-implement to hardest: 1. Log shipping. Log shipping is more of a technique than a feature:…
Read More
Swear Trek

Brace Yourself for These 9 Database Horror Stories

Humor
24 Comments
Last week, I asked for your worst database horror stories. Hoowee, did you deliver. Make yourself a nice cup of cocoa, gather around the campfire, and listen up for these terrible tales. Illustrations courtesy of Swear Trek (not safe for work.) The mistake we’ve all made Russ did an update without a where clause, but…
Read More

What’s Better, CTEs or Temp Tables?

T-SQL
37 Comments
I get this question a lot, so let’s set up an example with the Stack Overflow database. My query’s goal is to: Find the top 5 Locations List the users who live in those top 5 Locations, alphabetized by their DisplayName There are a LOT of ways I could write this query, but for the…
Read More
Brent Ozar presenting at SQL Saturday Israel 2019

Tips for Better Presentations

Today’s post is for those of you who give presentations to user groups and conferences. Upload your resources before the session starts. When you say “I’ll upload the resources later,” the attendee hears you saying, “I’m winging this, I barely finished this deck 15 minutes ago, and I didn’t even have the time to upload…
Read More