If you’ve got a partitioned table or index in SQL Server, and you want to check the parameter type of the partition function, you can use the sys.partition_parameters
system catalog view.
This view returns a row for each parameter of a partition function.
The parameter type should match or be implicitly convertible to the data type of the partitioning column in the table or index.
Continue reading