![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hello Vimas, Basd on the feedback from product team, this behavior is expected. You are dropping the AggregationDesign, but the partition is still referring to it. You may want to use the following code to see if it works: For Each oCube In oDB.Cubes Dim oMeasureGroup As Microsoft.AnalysisServices.MeasureGroup For Each oMeasureGroup In oCube.MeasureGroups If oMeasureGroup.AggregationDesigns.Count > 0 Then Dim oPartition As Microsoft.AnalysisServices.Partition For Each oPartition In oMeasureGroup.Partitions If Not oPartition.AggregationDesignID Is Nothing Then MsgBox("Dropped Agg Design from partition: " & oPartition.Name) oPartition.AggregationDesignID = '' oPartition.Update(UpdateOptions.AlterDependents) 'oPartition.AggregationDesign.Drop() 'oPartition.Update() End If Next For i = 0 To oMeasureGroup.AggregationDesigns.Count - 1 oMeasureGroup.AggregationDesigns(i).Drop() Next i oMeasureGroup.Update() End If Next Next If you have further questions or comments, please feel free to let's know. Thank you! 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. ================================================== ==== |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |