Posts by Brent Ozar

PASS Summit 2018

PASS Summit 2018 Keynote Day 2: Live Blog

#SQLPass
6 Comments
Today is the second day of the 2018 PASS Summit, the largest annual gathering of Microsoft data professionals. Yesterday, we got the marketing keynote that caught attendees up with the current state of SQL Server 2019 and Azure services. The attendees I talked to yesterday were impressed with the demo amounts & topics, too. Today is…
Read More
PASS Summit 2018

PASS Summit 2018 Keynote Day 1: Live Blog

#SQLPass
2 Comments
Today is the opening day of the 2018 PASS Summit, the largest annual gathering of Microsoft data professionals. Every year, thousands of us gather at the Seattle Convention Center to connect, learn, and share. On this first day of the conference, all the attendees go to the same room to watch the keynote speech. To…
Read More
PASS Summit 2018

Picking #PASSsummit Sessions to Attend

#SQLPass
0
So you’re going to the PASS Summit in Seattle this week, and you’re overwhelmed with the number of session choices. You’re not alone – it overwhelms me too. There are some slots where I wish I could clone myself and attend several sessions at once. Here’s how I do it. First priority: paying back your…
Read More
PowerShell for DBAs

You read reviews before you buy training, right?

Company News
0
Confession time: I love buying stuff. It’s not so much the buying as it is the comparing. I go to The Wirecutter, I read every review on Amazon, and I make little Excel spreadsheets to show differences between products. So what about when you buy database training? Do you read the reviews? If you’ve been…
Read More

Is Cost Threshold for Parallelism Measured in Seconds?

Execution Plans
2 Comments
SQL Server automatically chooses when to divide your query’s work across multiple CPU cores. It makes that decision based on your query’s cost. To see it, let’s throw 1,000,000 tiny rows in a table: Transact-SQL CREATE TABLE dbo.Timeless(ID INT IDENTITY(1,1) PRIMARY KEY CLUSTERED, Stuffing VARCHAR(20)); INSERT INTO dbo.Timeless (Stuffing) SELECT TOP 1000000 'Stuff' FROM sys.all_columns…
Read More

Using NOLOCK? Here’s How You’ll Get the Wrong Query Results.

Slapping WITH (NOLOCK) on your query seems to make it go faster – but what’s the drawback? Let’s take a look. We’ll start with the free StackOverflow.com public database – any one of them will do, even the 10GB mini one – and run this query: Transact-SQL UPDATE dbo.Users SET WebsiteUrl = 'https://www.brentozar.com/'; 12 UPDATE…
Read More

LGBTQ Meetup at the PASS Summit

#SQLPass
9 Comments
The SQL Server community is known for its welcoming acceptance of everyone, regardless of their experience or background. The SQL Server family actively reach out to help others and bring folks together. A great example of that is the LGBTQ Meetup organized by Andy Mallon (@amtwo.) Whether you identify as gay, lesbian, bisexual, transgender, questioning,…
Read More

Index Tuning Week: How Many Indexes Are Too Many?

Indexing
34 Comments
This week I’m running a series of posts introducing the fundamentals of index tuning. First up, let’s talk about understanding how many indexes make sense on a table. The more nonclustered indexes you have on a table, the slower your inserts and deletes will go. It’s that simple. If you have a table with 10…
Read More

Pour One Out for Database Diagrams, and Good Riddance

Development
101 Comments
Update 2019/06/11: they’re back! Microsoft heard your pleas, and Database Diagrams are back in SSMS 18.1. Update 2020/04/26: they’ve been broken since they came back (link broken by Microsoft), and it’s been almost a year now without a fix. In fairness, Microsoft deprecated this feature because they couldn’t support it, and the last year has…
Read More