I work in a very big environment and all of our Fact Tables are partitioned on a day-day basis.
The date partition is from our dimension process. Hence, the fact tables are partitioned on the date dimension.
The below script gives you the ease of generating an automatic script which prints the filegroup, file for the partition and also prints the Alter Partiton scheme to use the filegroup and also the splits the partiton function.
Our SAN is carved with smaller chunks for optimal performance and i follow a round-robin algorithm while partitoning. So, that is the reason for the drive names are named with Mount points and practically each one used for a specific partition.
This gives an ease for extending partitions on a day-day basis.
I hope this script will help a lot of folks out there...working in a warehouse!!!