dbTalk Databases Forums  

MDX-> >descendants< doesnt work in QA via linked server .. right? what can i do?

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


Discuss MDX-> >descendants< doesnt work in QA via linked server .. right? what can i do? in the microsoft.public.sqlserver.olap forum.



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

Default MDX-> >descendants< doesnt work in QA via linked server .. right? what can i do? - 07-23-2004 , 07:24 AM






for integration purposes its for me absolute necessary to use a Stored
Procedure for
accessing the olap cube.


my 'openquery ' call returns


Server: Nachr.-Nr. 7321, Schweregrad 16, Status 2, Zeile 1
An error occurred while preparing a query for execution against OLE DB
provider 'MSOLAP'.
[OLE/DB provider returned message: Formula error - object type is not
valid - in an <object> base class]
OLE DB error trace [OLE/DB Provider 'MSOLAP' ICommandPrepare::Prepare
returned 0x80040e14].

when i try to use 'descendants( [mydim],3)'

The same query using the 'mdx example app' works fine.

So what can i do ?

Any help would be greatly appreciated :-)

kk



Reply With Quote
  #2  
Old   
Brian Altmann
 
Posts: n/a

Default RE: MDX-> >descendants< doesnt work in QA via linked server .. right? - 07-23-2004 , 08:12 AM






The first parameter to Descendants can be a set or a member, not a dimension.
I tried running a query in MDX Sample App using a dimension as the first parameter and I got the same error message you are receiving.
HTH,
--
Brian
www.geocities.com/brianaltmann/olap.html


"kk" wrote:

Quote:
for integration purposes its for me absolute necessary to use a Stored
Procedure for
accessing the olap cube.


my 'openquery ' call returns


Server: Nachr.-Nr. 7321, Schweregrad 16, Status 2, Zeile 1
An error occurred while preparing a query for execution against OLE DB
provider 'MSOLAP'.
[OLE/DB provider returned message: Formula error - object type is not
valid - in an <object> base class]
OLE DB error trace [OLE/DB Provider 'MSOLAP' ICommandPrepare::Prepare
returned 0x80040e14].

when i try to use 'descendants( [mydim],3)'

The same query using the 'mdx example app' works fine.

So what can i do ?

Any help would be greatly appreciated :-)

kk




Reply With Quote
  #3  
Old   
sqllion
 
Posts: n/a

Default Re: MDX-> >descendants< doesnt work in QA via linked server .. right? what can i do? - 08-05-2011 , 10:38 AM



kk wrote on 07/23/2004 08:24 ET :
Quote:
for integration purposes its for me absolute necessary to use a Stored
Procedure for
accessing the olap cube.


my 'openquery ' call returns


Server: Nachr.-Nr. 7321, Schweregrad 16, Status 2, Zeile 1
An error occurred while preparing a query for execution against OLE DB
provider 'MSOLAP'.
[OLE/DB provider returned message: Formula error - object type is not
valid - in an <object> base class]
OLE DB error trace [OLE/DB Provider 'MSOLAP' ICommandPrepare::Prepare
returned 0x80040e14].

when i try to use 'descendants( [mydim],3)'

The same query using the 'mdx example app' works fine.

So what can i do ?

Any help would be greatly appreciated :-)

kk

MDX descendants function is nicely explained with more examples and diagrams
on
the below location.
http://www.sqllion.com/2011/08/mdx-decendants/
Have a look on it to get more knowledge.

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.