dbTalk Databases Forums  

Setting data slice on partition

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


Discuss Setting data slice on partition in the microsoft.public.sqlserver.olap forum.



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

Default Setting data slice on partition - 04-12-2005 , 08:36 AM






Hello,

What is the best way to set a "slice" on a partition using DTS?

I'm trying to use a global variable, but the slice does not take!
No error or anything, just does not take --

Example --

dsoPartitionNew.Dimensions("Fiscal").Levels("Year" ).SliceValue =
"[Fiscal].[All Fiscal].["+DTSGlobalVariables("Slice_Year").Value+ "]"

Any help is appreciated.

Jim


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

Default Re: Setting data slice on partition - 04-12-2005 , 04:25 PM






Get a copy of the SQL Server 2000 Resource Kit.
On it is a utility called the Metadata Scripter. It generates VB code that
will re-create an object (such as a partition).
Run it against a partition with the data slice setup correctly and you will
see the proper syntax to use. Make sure you use your own data since the
field may be urlencoded.
--
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.

"Jim_OLAP" <JimOLAP (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hello,

What is the best way to set a "slice" on a partition using DTS?

I'm trying to use a global variable, but the slice does not take!
No error or anything, just does not take --

Example --

dsoPartitionNew.Dimensions("Fiscal").Levels("Year" ).SliceValue =
"[Fiscal].[All Fiscal].["+DTSGlobalVariables("Slice_Year").Value+ "]"

Any help is appreciated.

Jim




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.