Metadata

Tag: metadata

Which Filegroup is that Partition Using? How Many Rows Does It Have?

Which Filegroup is that Partition Using? How Many Rows Does It Have?

Table Partitioning in SQL Server has a bit of a learning curve. It’s tricky to just figure out how much data you have and where the data is stored.

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