RE: How to copy aggregation data from one partition to another -
07-26-2006
, 03:35 AM
Hello Vimas,
Thank you for your post and nice to see you again in MSDN newsgroup.
I understand that you're looking for script to copy aggregation from one
partition to a new one. You want to some script to grabs last partition for
same measure group and get the id of aggregate used and uses it for new
partition build.
In AS2005 aggregations are not specific to the particular
partitions.AggregationDesign object contains definitions of
aggregations.This allows you easily to apply aggregation design to any
partition.
You usually don't need your "template" partitions, just create a partition
and point AggregationDesignID property to the particular aggregation design
object.
An agg design can have none, one or more than one partition pointing to it.
A partition points to one and only one agg design. Doing a multi-select
when designing aggregations in SSMS applies the same agg design to all of
the partitions.
You could use AMO to enumberate and find
Partition.AggregationDesign/Partition.AggregationDesignID properties and
use them to create new parititon.
http://msdn2.microsoft.com/en-us/library/ms345091.aspx
Also, You may want to try and use AmoBrowser sample application to navigate
list of objects in AMO.
If you have futher questions, please feel free to let's know.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
================================================== ===
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ==== |