Create a Partition Function in SQL
问题 I have created a partition function but I am not able to apply it to a table. I am not sure where I am going wrong. Here is my partition function: CREATE PARTITION FUNCTION StaticDateMonthPartition (int) AS RANGE left FOR VALUES ( 20120301, 20120401, 20120501, 20120601, 20120701, 20120801, 20120901, 20121001, 20121101, 20121201, 20130101, 20130201 ) trying to apply to this table: IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[partition_OLAP_Fact_vvv]') AND type in