dbTalk Databases Forums  

DSO code question

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss DSO code question in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jesse O
 
Posts: n/a

Default DSO code question - 08-02-2005 , 05:37 PM






I found this snippet of code from a post ways back.

This code sets up the data slice for a partition. The first line is
obviously needed, however are lines 2-7 needed as well? What do they gain?



1
dsoPartitionNew.Dimensions("Time").CustomPropertie s("DimensionSlice").Value
= "1998.Q4.12"
2 dsoPartitionNew.Dimensions("Time").Levels("Year"). MemberKeyColumn =
"""time_by_day"".""the_year"""
3 dsoPartitionNew.Dimensions("Time").Levels("Year"). SliceValue = "1998"
4 dsoPartitionNew.Dimensions("Time").Levels("Quarter ").MemberKeyColumn =
"""time_by_day"".""quarter"""
5 dsoPartitionNew.Dimensions("Time").Levels("Quarter ").SliceValue = "Q4"
6 dsoPartitionNew.Dimensions("Time").Levels("Month") .MemberKeyColumn =
"""time_by_day"".""month_of_year"""
7 dsoPartitionNew.Dimensions("Time").Levels("Month") .SliceValue = "12"



Reply With Quote
  #2  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: DSO code question - 08-02-2005 , 09:26 PM






The first one sets up the "name" of the slice and the others are the actual
slice itself. All are needed.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.


"Jesse O" <jesperzz (AT) hotmail (DOT) com> wrote

Quote:
I found this snippet of code from a post ways back.

This code sets up the data slice for a partition. The first line is
obviously needed, however are lines 2-7 needed as well? What do they gain?



1
dsoPartitionNew.Dimensions("Time").CustomPropertie s("DimensionSlice").Value
= "1998.Q4.12"
2 dsoPartitionNew.Dimensions("Time").Levels("Year"). MemberKeyColumn =
"""time_by_day"".""the_year"""
3 dsoPartitionNew.Dimensions("Time").Levels("Year"). SliceValue = "1998"
4 dsoPartitionNew.Dimensions("Time").Levels("Quarter ").MemberKeyColumn =
"""time_by_day"".""quarter"""
5 dsoPartitionNew.Dimensions("Time").Levels("Quarter ").SliceValue = "Q4"
6 dsoPartitionNew.Dimensions("Time").Levels("Month") .MemberKeyColumn =
"""time_by_day"".""month_of_year"""
7 dsoPartitionNew.Dimensions("Time").Levels("Month") .SliceValue = "12"




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.