dbTalk Databases Forums  

Excel function not working in ADOMD

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


Discuss Excel function not working in ADOMD in the microsoft.public.sqlserver.olap forum.



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

Default Excel function not working in ADOMD - 11-22-2004 , 07:12 AM






Hi,

I have some calculated members in my cube which uses the Excel
Quartile function. The calculated members return the data just fine if
I give a MDX query in the MDX Sample application - but it returns null
when I give it in my own code which uses takes the query and uses
ADOMD to get the data from the cube. What could I be doing wrong? I
believe the MDX Sample Application is written using ADOMD - so there
is no reason why it should not work with ADOMD. Should I post my code
here?

Any pointers please ...

Thanks in advance

Regards

Vani Murarka

Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Excel function not working in ADOMD - 11-22-2004 , 03:50 PM






Are the MDX Sample App and custom app run on the same PC?


- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Reply With Quote
  #3  
Old   
Vani Murarka
 
Posts: n/a

Default Re: Excel function not working in ADOMD - 11-23-2004 , 04:35 AM



Deepak Puri <deepak_puri (AT) progressive (DOT) com> wrote ...
Quote:
Are the MDX Sample App and custom app run on the same PC?

Yes, they are running on the same PC.

Regards

Vani


Reply With Quote
  #4  
Old   
Vani Murarka
 
Posts: n/a

Default Re: Excel function not working in ADOMD - 11-23-2004 , 06:00 AM



One thing I would like to clarify -

In my custom app, I am using ADOMD.NET not ADOMD. Also I am using the
AdomdDataAdapter and putting the result into a DataSet - instead of
using the CellSet. Would this make a difference? I noticed that the
MDX Sample App is a VB app that uses ADOMD and cellset.

Regards

Vani

Reply With Quote
  #5  
Old   
Vani Murarka
 
Posts: n/a

Default Re: Excel function not working in ADOMD - 11-23-2004 , 07:29 AM



As a further followup -
Instead of using ADOMD.NET, I even tried with the OleDBDataAdapter -
but here too I get a null if I try to get a calculated member that
uses an Excel function - other calculated members and measures return
data fine.

:-(

:-(

:-(

Vani

Reply With Quote
  #6  
Old   
Vani Murarka
 
Posts: n/a

Default Re: Excel function not working in ADOMD - 11-24-2004 , 12:41 AM



Ok. Got the solution. It was calling the "Access denied attempting to
launch a DCOM Server using DefaultLaunchPermssion. " for the user
ASPNET in the Event Log. This user needs to be given permission for
Microsoft Excel as per the following link:

http://support.microsoft.com/default...b;en-us;290398

and it will work fine.

Regards

Vani

Reply With Quote
  #7  
Old   
Deepak Puri
 
Posts: n/a

Default Re: Excel function not working in ADOMD - 11-24-2004 , 10:30 AM



Thanks for sharing the solution - I haven't yet used ADOMD.NET, so this
may be useful down the road ...


- Deepak

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

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.