dbTalk Databases Forums  

CellSet.Axes.DimensionCount eqvivalent in ADOMD.Net ??????

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


Discuss CellSet.Axes.DimensionCount eqvivalent in ADOMD.Net ?????? in the microsoft.public.sqlserver.olap forum.



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

Default CellSet.Axes.DimensionCount eqvivalent in ADOMD.Net ?????? - 05-17-2006 , 04:01 PM






Hi,

I am getting the Dimension Count and the Positions count using ADOMD using
the following code.

int intDC0 = cst.Axes[0].DimensionCount;
int intDC1 = cst.Axes[1].DimensionCount;

int intPC0 = cst.Axes[0].Positions.Count;
int intPC1 = cst.Axes[1].Positions.Count;

Now i am migrating to ADOMD.Net and do not have the DimensionCount property
for the Axes pbject within the CellSet Object.

Please let me know how do i detemine the DimensionCount on each axes of the
Cell Set object?

Any Code examples will also be helpful.

Best Regards,

Prasad.

Reply With Quote
  #2  
Old   
Mary Potapova [MS]
 
Posts: n/a

Default Re: CellSet.Axes.DimensionCount eqvivalent in ADOMD.Net ?????? - 05-17-2006 , 09:34 PM






hello Prasad,

there is no DimensionCount property on the Axis in Adomd.Net. however, now
axis has a list of hierarchies [members from which would appear in tuples
(similar to positions) on the axis]. my guess is that you are looking for
this count, and you can get it for example like this:

// assuming axis is the axis of interest
axis.Set.Hierarchies.Count

in case you really need the number of different dimensions on the axis, i
guess you'd need to loop through the axis.Set.Hierarchies and see how many
different dimensions they belong to.

hope this helps,
- mary

--
This posting is provided "AS IS" with no warranties, and confers no rights.
--
"Prasad" <Prasad (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I am getting the Dimension Count and the Positions count using ADOMD using
the following code.

int intDC0 = cst.Axes[0].DimensionCount;
int intDC1 = cst.Axes[1].DimensionCount;

int intPC0 = cst.Axes[0].Positions.Count;
int intPC1 = cst.Axes[1].Positions.Count;

Now i am migrating to ADOMD.Net and do not have the DimensionCount
property
for the Axes pbject within the CellSet Object.

Please let me know how do i detemine the DimensionCount on each axes of
the
Cell Set object?

Any Code examples will also be helpful.

Best Regards,

Prasad.



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.