Indexing

Category: indexing

Links and Notes from SQL Server Index Formulas, Huntington Beach

Links and Notes from SQL Server Index Formulas, Huntington Beach

on April 5, 2016

Category: indexing

I gave a day long session, “SQL Server Index Formulas, Problems and Solutions” in Huntington Beach, CA on April 1. The class was a great group of students, and we had a lively discussion and lots of questions.

Here’s a topic we diagrammed in class, as well as links to extra resources.

Continue reading

Truncate Table with Partitions Fails if You Have Non-Aligned Indexes

Truncate Table with Partitions Fails if You Have Non-Aligned Indexes

on March 22, 2016

Category: indexing

SQL Server 2016 brought in a cool new little feature for table partitioning: you can now truncate individual partitions. There’s one little gotcha, though: you can only do this if all the indexes on the tables are “aligned”.

Continue reading

Find the Partitioning Key on an Existing Table with Partition_Ordinal

Find the Partitioning Key on an Existing Table with Partition_Ordinal

By Kendra Little on March 15, 2016

Category: indexing

@SQLSista asked a fun question on Twitter recently about how to figure out the partitioning key on an existing table:

Bad Partitioned HEAP predates me. No clustered index, Primary Key on ID column and multiple datetime columns. How to find the partitioning key? #sqlhelp

Continue reading

SQL Code Basics: Reusable Event Logging Utility

SQL Code Basics: Reusable Event Logging Utility

on March 3, 2016

Category: indexing

When I created the SQLIndexWorkbook database [which was later renamed to BabbyNames], I purposefully shipped minimal code. I plan to add more as I build it, but I wanted to keep the first version dead simple.

Continue reading

How to Check if an Index Exists on a Table in SQL Server

How to Check if an Index Exists on a Table in SQL Server

on January 28, 2016

Category: indexing

It seems like this should be easy. But it’s not.

Continue reading

New Class! SQL Server Index Formulas: Problems and Solutions for $99 in Huntington Beach, California

New Class! SQL Server Index Formulas: Problems and Solutions for $99 in Huntington Beach, California

on January 7, 2016

Category: indexing

My new one day training session, “SQL Server Index Formulas: Problems and Solutions”, is now available for just $99!

Continue reading

My SQLPASS 2015 Session Evaluations

My SQLPASS 2015 Session Evaluations

on November 24, 2015

Category: indexing

I recently gave a day long session at the SQLPASS Summit called “SQL Server Index Therapy Session”. 61 people attended, and let me tell you I was thrilled with that number. I’ve co-presented lots of day and week long sessions, but this was the first day long session that I’d ever done solo at a conference and 61 people was a terrific number.

Continue reading