dbTalk Databases Forums  

combining MDX and sql

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


Discuss combining MDX and sql in the microsoft.public.sqlserver.olap forum.



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

Default combining MDX and sql - 08-17-2006 , 10:45 AM






is there anyway to run a MDX select against a cube .....get the result set
......create a sql table and then run a select statement against that table
with a normal select statment........ basically what im try to do is combine
som sql data a result set from a cube

Reply With Quote
  #2  
Old   
davidc
 
Posts: n/a

Default Re: combining MDX and sql - 08-17-2006 , 12:38 PM






Robin:

Yes, it can be done. Use ADO.NET to:

1) return a dataset (cellset, rowset, or MDDataSet (XML)) with a MDX
query
2) read the dataset and put the values into a table (in-memory data
table and/or write to a physical table
3) query table from step 2 with SQL.

- David


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

Default Re: combining MDX and sql - 08-17-2006 , 08:41 PM



Robin,

You can absolutely do this. You will want to create a linked server
from within SQL server to your OLAP server. You can then use the T-SQL
OPENQUERY command and pass your MDX as a string. There a few resources
on the net... here's one:

http://geekswithblogs.net/darrengosb.../26/76418.aspx

Robin Krupp wrote:
Quote:
is there anyway to run a MDX select against a cube .....get the result set
.....create a sql table and then run a select statement against that table
with a normal select statment........ basically what im try to do is combine
som sql data a result set from a cube


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.