Scripting a partitioned temp/staging table does not include reference to source table's level of page level compression.
You can create a partition function with CREATE PARTITION FUNCTION [Person.PF_Address](int) RANGE LEFT FOR VALUES (10000, 20000, 30000); This function will not be handled properly due to the dot (...