Blogs

Index Usage Stats Insanity - the oddities of sys.dm db index usage stats (Dear SQL DBA)

Index Usage Stats Insanity - the oddities of sys.dm db index usage stats (Dear SQL DBA)

on June 30, 2016

SQL Server’s “index usage stats” dynamic management view is incredibly useful– but does it tell you what you THINK it tells you?

I explain the quirks of how sys.dm_db_index_usage_stats works and why the information is so valuable.

Continue reading

SPLIT in a LEFT Partition Function: Where Does the Above-Boundary Data Go?

SPLIT in a LEFT Partition Function: Where Does the Above-Boundary Data Go?

on June 28, 2016

Table partitioning seems simple, but there’s a lot of complexity in designing and managing it if you decide to use filegroups and splitting.

When you first implement partitioning in this scenario, you decide where you’re going to keep “out of bound” data when you create your partition scheme. Be careful when you make that decision, because it may not be easy to change later.

Continue reading

Learn Index Tuning at the PASS Summit in 2016!

Learn Index Tuning at the PASS Summit in 2016!

on June 24, 2016

I’m excited to announce that I’ll be giving a pre-conference session on index tuning, plus a general session on locking and blocking at the PASS Summit in Seattle this October! Here’s a description and a video to tell you all about these sessions.

Continue reading

Fail Over, Fail Again, Fail Better - Preparing for Disaster Recovery (Dear SQL DBA)

Fail Over, Fail Again, Fail Better - Preparing for Disaster Recovery (Dear SQL DBA)

on June 23, 2016

You’re setting up SQL Server log shipping for disaster recovery. What else do you need to do to best prepare for a failure?

Continue reading

Will Query Store Work in a Read Only Database?

Will Query Store Work in a Read Only Database?

on June 21, 2016

For static databases, it’s quite useful to set SQL Server’s “read only” database property to true. When the database is read-only, it ensures that the last backup you took is still valid… as long as nothing bad happens to that backup file.

Continue reading

Outside the Big SAN Box: Identifying Storage and SAN Latency in SQL Server (Dear SQL DBA)

Outside the Big SAN Box: Identifying Storage and SAN Latency in SQL Server (Dear SQL DBA)

on June 16, 2016

Dear SQL DBA, What do you say to a SAN admin when you think that the billion dollar SAN *may* be the bottleneck and you just want to look into it. What are the technical things I need to say to make them believe there might be something to my questions?

Continue reading

Target Recovery Interval and Indirect Checkpoint - New Default of 60 Seconds in SQL Server 2016

Target Recovery Interval and Indirect Checkpoint - New Default of 60 Seconds in SQL Server 2016

on June 14, 2016

Update, 6/21/2016: Be careful using indirect checkpoint with failover clusters if your SQL Server 2014 instance is not fully patched. See KB 3166902. This bug was fixed in SQL Server 2016 prior to RTM.

SQL Server 2016 introduces big new features, but it also includes small improvements as well. Many of these features are described in the “It Just Runs Faster” series of blog posts by Bob Ward and Bob Dorr.

Continue reading