In SQL Server, you can use the sys.partition_range_values
system catalog view to find out the boundary values used for a partitioned table.
However, you’d need to know the function_id
of the partition function before you use that view.
But as always, you can run a join against a bunch of other tables to get the desired info.
Continue reading