![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, Is there any method to identify the Number of Members or Rows or Columns before executing the MDX. Regards, Mansoor |
#3
| |||
| |||
|
|
Yes, you can use ADOMD properties to obtain this information: You can declare an ADOMD cellset, and execute your MDX, and check the counts of positions and/or members, something like: cst.Axes(i).Positions(j).Members(k) Be careful of this, if you have a long running query, it will take a long time to obtain the information you want because the statement has to execute completely. Solutions is ok, but i am willing to use it prompt the user about the |
#4
| |||
| |||
|
|
SQL McOLAP wrote: Yes, you can use ADOMD properties to obtain this information: You can declare an ADOMD cellset, and execute your MDX, and check the counts of positions and/or members, something like: cst.Axes(i).Positions(j).Members(k) Be careful of this, if you have a long running query, it will take a long time to obtain the information you want because the statement has to execute completely. Solutions is ok, but i am willing to use it prompt the user about the delay that this query will take a long time to execute, but it will be useless if the user comes to know about it _AFTER_ the query is executed. |
![]() |
| Thread Tools | |
| Display Modes | |
| |