Blogs

Columnstore Index Returns Zero Rows... Which is One Row

Columnstore Index Returns Zero Rows... Which is One Row

By Kendra Little on March 21, 2017 • 3 min read

I’ve never claimed to be great at math, but until recently I thought I knew how to count to one. Zero… one. That’s what we learned in kindergarten.

Apparently SQL Server didn’t go to kindergarten.

Continue reading

Time for an Interview: What accomplishment are YOU most proud of?

Time for an Interview: What accomplishment are YOU most proud of?

on March 20, 2017 • 2 min read

Last week I answered a set of fun interview questions from Mohammad Darab. One question that he asked really jumped out at me:

What are you most proud of doing/accomplishing for the SQL Server community so far in your career?

Continue reading

Using a Tail Log Backup in a SQL Server Migration (Dear SQL DBA Episode 34)

Using a Tail Log Backup in a SQL Server Migration (Dear SQL DBA Episode 34)

on March 16, 2017 • 1 min read

When you migrate a database, it can be useful to prove that you moved all the data and didn’t miss any transactions. Learn how to use a tail log backup in a migration scenario.

Continue reading

Data Type Mismatches Do Not Always Cause a Bad Implicit Conversion and Index Scan

Data Type Mismatches Do Not Always Cause a Bad Implicit Conversion and Index Scan

By Kendra Little on March 15, 2017 • 4 min read

Here’s a great recent question that I got about query tuning and index use:

Assuming that the documented levels of data type precedence in SQL Server are true as of SQL 2016, why does a bigint value not force an index scan when compared against an int column?

Continue reading

Why Indexes Reduce Locks for Update and Delete Queries

Why Indexes Reduce Locks for Update and Delete Queries

on March 14, 2017 • 4 min read

Category: index-tuning , locking

Indexes help queries run faster in SQL Server for several reasons. One of those reasons is that indexes can help your update and delete statements lock fewer rows. And I’m not only talking about shared locks, either.

Continue reading

Stack Dumps in SQL Server (Dear SQL DBA Episode 33)

Stack Dumps in SQL Server (Dear SQL DBA Episode 33)

on March 9, 2017 • 2 min read

Learn what a Stack Dump is in SQL Server and watch a demo where I cause a stack dump against a test SQL Server instance under load. Learn how to find information about stack dumps on your SQL Server, and how to escalate them when required.

Continue reading

Overindexing: Missing Index DMVs and the Database Tuning Advisor

Overindexing: Missing Index DMVs and the Database Tuning Advisor

on March 8, 2017 • 7 min read

Category: index-tuning

SQL Server has tools that suggest indexes– and they’ll even auto-create the indexes for you.

I’m not a huge fan of these tools because they’ve got some notable flaws: they lead to creating more indexes than you need, and they aren’t super smart about the indexes they recommend.

Continue reading