![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, In Chapter 18 of SQL Server 2000 Resource Kit, there's a sample code of cloning a partition in OLAP using DSO. I try the example and it works well. But I noticed that the new partition that was created didn't have the correct Data Slice. Part of the coding is like this : ' Change the definition of the data slice used by the new ' partition, by changing the SliceValue properties of the ' affected levels and dimensions to the desired values. dsoPartitionNew.Dimensions("Time").Levels("Year"). SliceValue = "1998" dsoPartitionNew.Dimensions("Time").Levels("Quarter ").SliceValue = "Q4" dsoPartitionNew.Dimensions("Time").Levels("Month") .SliceValue = "12" The 'New Partition' Data Slice always clone the value from the 'Original Partition', and the settings above didn't give any changes to the value. Why is it? And how to resolve it? Here's my testing scenario to reproduce the issue: - Install Analysis Services - Apply SP3a - Run the script (at this point, you'll have the script work perfectly) - Delete the 'NewPartition1' to restart the test - Edit the 'Sales' partition, set the 'Data Slice' to '1997' (as it supposed to be) - Run the script You'll find that the 'NewPartition1' will not have the correct setting for the 'Data Slice'. I try some combination of the test, and I conclude that if the 'Data Slice' of the 'Original Partition' had already been editted manually. Than the cloning task will raise this issue. You can try to omit the 'Data Slice' of the 'Sales' partition to make it like the first time you have it. But the cloning task won't be correct anymore. Thanks in Advance Best Regards, Jono Indrawijaya |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |