Blogs

Index Tuning Decision Tree for SQL Server

Index Tuning Decision Tree for SQL Server

on September 20, 2016

I recently mapped out my thought process for how I approach a new instance of SQL Server when it comes to index tuning.

Continue reading

Deadlock Code for the WideWorldImporters Sample Database

Deadlock Code for the WideWorldImporters Sample Database

on September 13, 2016

If you haven’t checked out Microsoft’s new WideWorldImporters sample database for 2016, it’s a pretty cool new little database. The database makes it easy to play around with new 2016 features, and it even ships with some cool little executables to run inserts in the “workload-drivers” folder.

Continue reading

Unique Constraints vs Unique Indexes

Unique Constraints vs Unique Indexes

on September 8, 2016

Unique constraints and unique nonclustered indexes have a lot in common: unique constraints are implemented with a unique index behind the scenes.

While unique nonclustered indexes have a couple of additional features, I can still think of a scenario where it might be best to use unique constraints.

Continue reading

Estimated vs. Actual Number of Rows in Nested Loop Operators

Estimated vs. Actual Number of Rows in Nested Loop Operators

on September 6, 2016

This is one of those little detailsΒ that confused me a ton when I was first working with execution plans.

One problem with learning to work with plans is that there’s just SO MUCH to look at. And it’s a bit spread out. So, even when looking at a single tooltip, things can be confusing.

Let’s talk about the nested loop operator, who can be particularly weird to understand.

Continue reading

Finding Your Voice as a Speaker (Dear SQL DBA Episode 15)

Finding Your Voice as a Speaker (Dear SQL DBA Episode 15)

on September 1, 2016

Learn what it’s like to find and develop your voice as a technical speaker in this week’s episode of Dear SQL DBA.

Continue reading

Do Clustered Index Columns Count Against Max Nonclustered Key Size?

Do Clustered Index Columns Count Against Max Nonclustered Key Size?

on August 30, 2016

SQL Server 2016 and Azure SQL Database have a lot of little perks. One little thing that changed is that the maximum key size allowed for nonclustered indexes was raised from 900 bytes to 1700 bytes.

Continue reading

Collect and Baseline Wait Statistics (Dear SQL DBA Episode 14)

Collect and Baseline Wait Statistics (Dear SQL DBA Episode 14)

on August 25, 2016

What are the best tools to collect and baseline wait statistics? Should you write your own? Watch the 18 minute video or read the episode transcript below.

Continue reading