Live registration reopens October 1, 2026, in 18d 02h 34mNotify me

Author: Erik Darling

Restoring tempdb since GETDATE(). Now blogging at ErikDarlingData.com.

Setting Up SQL Server: People Still Need Help

I Like What's Happening
I wanna start off by saying that I like what Microsoft has been doing with the setup process -- it made a lot of sense to add the tempdb configuration screen, and having a checkbox to turn on Instant File Initialization was amazingly helpful.

Even in the cloud, people still need to install SQL Server, and even in the cloud, not everyone installing SQL Server is a DBA.

Read more about Setting Up SQL Server: People Still Need Help 6 comments — Join the discussion

Do I Have A Query Problem Or An Index Problem?

Party Up
When someone says "this query is slow", and you can rule out contextual stuff like blocking, odd server load, or just an underpowered server, what's the first thing you look at? There's a lot of potential culprits, and they could be hiding in lots of different places.

After several minutes of thinking about it, I decided to call my method QTIP, because I like to look at the:

Read more about Do I Have A Query Problem Or An Index Problem? 7 comments — Join the discussion
Performance Tuning

Is the CXCONSUMER Wait Type Harmless? Not So Fast, Tiger.

Let's say you've got a query, and the point of that query is to take your largest customer/user/whatever and compare their activity to smaller whatevers. If SQL Server doesn't balance that work evenly across multiple threads, you can experience the CXCONSUMER and/or CXPACKET wait types. To show how SQL Server ends up waiting, let's write…

Read more about Is the CXCONSUMER Wait Type Harmless? Not So Fast, Tiger. 8 comments — Join the discussion

#TSQL2sday: +

For this month's T-SQL Tuesday, He of Perfect Hair, Bert Wagner asked, "What code have you written that you would hate to live without?"

There are a lot of pieces of code I frequently need to reuse when working on the First Responder Kit, like string splitting, XML PATH-ing, and converting milliseconds to some human consumable elements.

Read more about #TSQL2sday: + 5 comments — Join the discussion

Ola Hallengren’s Scripts Keep Getting Better

You Know Him, You Love Him
You trust your database backups and integrity checks to him, and he has been KILLING IT on new features lately.

A while back, Ola decided to Open Source his scripts on GitHub (Soon to be known as Microsoft LiveHub for Business Essentials). As more and more people embrace GitHub and are getting used to how it works, the feature suggestions have been rolling in.

Read more about Ola Hallengren’s Scripts Keep Getting Better 6 comments — Join the discussion

Building SQL ConstantCare®: Collecting Query Plans

Coming Soon
In an upcoming release, we'll start collecting query plans from your servers. Since this may result in the transmission of PII, it will be opt-in only. We won't be getting this by default, because we don't want anyone to be uncomfortable with the level of data we're collecting from their servers.  This is an important goal.

Read more about Building SQL ConstantCare®: Collecting Query Plans 4 comments — Join the discussion
Production DBA

How The Cloud Turns Performance Tuning Into Cost Savings

Barely Metal
In Ye Olde Olden Dayyes, companies would outline hardware budgets and refresh cycles.

Every 3-5 years, they'd lick a thumb and hold it up to the CPU fans. If they felt a soft breeze, they'd buy the same number of CPUs. If they felt a hard breeze, they'd buy a few more. This made the hardware buy more expensive, and of course drove up licensing costs.

Read more about How The Cloud Turns Performance Tuning Into Cost Savings Be the first to comment
Performance Tuning

A Surprising Simplification Limitation

When It Comes To Simplification Rob Farley has my favorite material on it. There's an incredible amount of laziness ingenuity built into the optimizer to keep your servers from doing unnecessary work. That's why I'd expect a query like this to throw away the join: [crayon-6aa5c33b771e1039838953/] After all, we're joining the Users table to itself…

Read more about A Surprising Simplification Limitation 16 comments — Join the discussion