Blogs

Index Usage Stats Bug Fixed in SQL Server 2012 SP2 CU12 / SP3 CU3

Index Usage Stats Bug Fixed in SQL Server 2012 SP2 CU12 / SP3 CU3

on May 18, 2016

Microsoft has just released a new round of cumulative updates for SQL Server 2012, and the release notes indicate that a fix to the sys.dm_db_index_usage_stats dynamic management view has been included in these updates. This is good news for index tuners using SQL Server 2012.

As of SP2 + CU12 and SP3 + CU3, SQL Server 2012 will persist index usage information even when ALTER INDEX REBUILD is run.

Continue reading

Sabbatical Update: 4 Months of Fun and Reflection

Sabbatical Update: 4 Months of Fun and Reflection

on May 17, 2016

I’m about four months into my planned six month sabbatical.

At the beginning, I worried a little that I might not like life as a grownup without a job. Would I feel lost? Purposeless? Bored?

Nope. It turns out that I amย excellent at not having a real job. I’ve learned a bunch, enjoyed life, seen a bit of the world, gotten healthier, and created some teaching materials that I’m super proud of.

Continue reading

Submit a Dear DBA Question

Submit a Dear DBA Question

on May 12, 2016

If you’re a database administrator, a developer, or just someone who plays one on TV, I know you’ve got questions. Technical questions. Political questions. Questions about how to handle your coworker with stinky feet who wears flip flops to work. (Been there!)

Now you’ve got a way to get answers. Submit your question to Dear DBA.

Continue reading

Indexes: Do Included Columns Always Go on a Non-Root Page? (video)

Indexes: Do Included Columns Always Go on a Non-Root Page? (video)

on May 10, 2016

Recently, I was thinking about nonclustered indexes in SQL Server, and how included columns are stored.

Is SQL Server smart enough to optimize the storage for small indexes with includes? Find out in this free seven minute video.

Continue reading

How to Script Out Indexes from SQL Server

How to Script Out Indexes from SQL Server

on May 5, 2016

Sometimes you need to script out all the indexes in a database. Maybe you’re concerned something has changed since they were last checked in. Or maybe the indexes aren’t checked into source control, and you’re working on fixing that. (Important!)

Either way, sometimes you need to do it, and it’s not fun through the GUI. I needed to write some fresh demo code for this recently, and I needed it to give the details for partitioned tables using data compression, and I thought I’d share.

Continue reading

Why Table Partitioning Does Not Speed Up Query Performance (video)

Why Table Partitioning Does Not Speed Up Query Performance (video)

on May 3, 2016

Learn why SQL Server’s table partitioning feature doesn’t make your queries faster– and may even make them slower.

Continue reading

Required Testing for Installing SQL Server Cumulative Updates and Service Packs

Required Testing for Installing SQL Server Cumulative Updates and Service Packs

on April 28, 2016

Microsoft recently updated theirย policies and recommendations for installing cumulative updates.

Continue reading