dbTalk Databases Forums  

Can I add measures for a partition using DSO?

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


Discuss Can I add measures for a partition using DSO? in the microsoft.public.sqlserver.olap forum.



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

Default Can I add measures for a partition using DSO? - 08-28-2003 , 06:05 PM






Hi:

I have a cube with multiple partitions. Since each partition has a different
fact table, I have to add the same measures for each partition (is this
right?). I'm trying to add a new measure like this:

DSO.PartitionMeasure measure = (DSO.PartitionMeasure) part.Measures.AddNew
("sales", DSO.SubClassTypes.sbclsRegular);

I got error message:
"Additional information: Object variable or With block variable not set".

Anyone knows what it means?

Thanks



Reply With Quote
  #2  
Old   
Polaris
 
Posts: n/a

Default Re: Can I add measures for a partition using DSO? - 08-29-2003 , 03:52 PM






Hi, Thanks for your info. But I'm using C#, not VB.

"akshayk" <akshay349 (AT) hotmail (DOT) com> wrote

Quote:
syntactically statement should be :-
SET DSO.PartitionMeasure measure = (DSO.PartitionMeasure)
part.Measures.AddNew("sales", DSO.SubClassTypes.sbclsRegular);
You are missing "SET"
"Polaris" <etpolaris (AT) hotmail (DOT) com> wrote in message
news:OarKMjbbDHA.2548 (AT) TK2MSFTNGP09 (DOT) phx.gbl...
Hi:

I have a cube with multiple partitions. Since each partition has a
different
fact table, I have to add the same measures for each partition (is this
right?). I'm trying to add a new measure like this:

DSO.PartitionMeasure measure = (DSO.PartitionMeasure)
part.Measures.AddNew
("sales", DSO.SubClassTypes.sbclsRegular);

I got error message:
"Additional information: Object variable or With block variable not
set".

Anyone knows what it means?

Thanks







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.