dbTalk Databases Forums  

MDX and OPENROWSET

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


Discuss MDX and OPENROWSET in the microsoft.public.sqlserver.olap forum.



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

Default MDX and OPENROWSET - 10-22-2004 , 05:46 AM






I'm attempting to query a cube from ISQLW

SELECT a.*
FROM OPENROWSET( 'MSOLAP.2', 'DATASOURCE=myDB; USER ID=; PASSWORD=;Initial
Catalog=SalesDWH;',
'select [Measures].[members] on columns, [OppRegion].[All Opp Region]
on rows from [SalesCube] '
) AS a

Here's there error it returns:
OLE DB provider 'MSOLAP.2' reported an error. Access denied.

I'm logged into ISQLW with Windows Authentication. My login has all
permissions for the cube. Any help is appreciated.

Doug





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

Default RE: MDX and OPENROWSET - 10-22-2004 , 07:43 AM






I've tried the following (very similar) query in QA and it works:

SELECT a.*
FROM OPENROWSET( 'MSOLAP.2', 'DATASOURCE=<Analysis Server Name>;Initial
Catalog=Foodmart 2000;',
'select [Measures].members on columns, {[Store].[All Stores]} on rows
from [Sales] '
) AS a

You should replace <Analysis Server Name> with the name of your Analysys
Server.
Notice that square brackets should be removed from Members, since it is an
MDX functions, and curly brackets should be added to [OppRegion].[All Opp
Region], to convert it to a set. Otherwise, even if access were granted, MDX
syntax errors would be returned.
HTH,
Brian
www.geocities.com/brianaltmann/olap.html

"Doug Stiers" wrote:

Quote:
I'm attempting to query a cube from ISQLW

SELECT a.*
FROM OPENROWSET( 'MSOLAP.2', 'DATASOURCE=myDB; USER ID=; PASSWORD=;Initial
Catalog=SalesDWH;',
'select [Measures].[members] on columns, [OppRegion].[All Opp Region]
on rows from [SalesCube] '
) AS a

Here's there error it returns:
OLE DB provider 'MSOLAP.2' reported an error. Access denied.

I'm logged into ISQLW with Windows Authentication. My login has all
permissions for the cube. Any help is appreciated.

Doug






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.