SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Exporting MDX queries to SQL Relational Databases using SSIS 2005


Exporting MDX queries to SQL Relational Databases using SSIS 2005

Author
Message
ANDREW.MUYOBO
ANDREW.MUYOBO
Grasshopper
Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)Grasshopper (18 reputation)

Group: General Forum Members
Points: 18 Visits: 51
Comments posted to this topic are about the item Exporting MDX queries to SQL Relational Databases using SSIS 2005
denglishbi
denglishbi
Right there with Babe
Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)

Group: General Forum Members
Points: 763 Visits: 1362
Very interesting article. Always neat to see how other people go about solving problems and coming up with solutions. I also had to deal with getting SSAS data into SSRS and putting it in a format that would easily work with SSRS. I looked at SSIS as a source for the report and actually combining the data within SSIS to output to SSRS. I did like that approach, but in the end we ended up going with a linked server and using stored procedures to use as the source for the SSRS reports.

Using Reporting Services (SSRS) with SSAS data

You don't see me using relational data in the example, but he had to in some reports where we would actually configure how to rate items based on a tie breaker in the rankings.

----------------------------------------------------------------------------------------
Dan English - http://denglishbi.wordpress.com
Ramakrishna Gudimella
Ramakrishna Gudimella
SSC Rookie
SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)SSC Rookie (32 reputation)

Group: General Forum Members
Points: 32 Visits: 189
We had a similar requirement and i used the following steps to export OLAP data into relational tables.

1) Create a linked server to the SSAS OLAP Cube in Management studio.

2) Run an openquery against the linkedserver

Ex:
SELECT * into TempTable FROM OPENQUERY(Linkedservername,'select {[Measures].[Count]} on columns from XXX')

3) Edit the TempTable design to assign correct column names etc.

Hope this helps.
Anipaul
Anipaul
SSCertifiable
SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)SSCertifiable (7.2K reputation)

Group: General Forum Members
Points: 7231 Visits: 1407
Excellent explanation. Good one...



KABay
KABay
Grasshopper
Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)Grasshopper (24 reputation)

Group: General Forum Members
Points: 24 Visits: 68
Nice article. But I think the text has become a bit disordered. For example check the paragraph

"Drag an OLE DB Destination item onto the Data Flow task designer. Name it SQL Destination and drag a Green connector to it from the Data Conversion task. Right click the OLE DB Destination item and select Edit. Select your relational database server and database in the Connection Manager, leave the Data access mode to Table or View, and select the table you just cre"

It ends abruptly and continues after the paragraph

I hope this article has shown you the power SSIS has when it comes to transforming data from an MDX query into SQL tables. One modification you may consider is building the MDX query in a Script, passing it to a variable which is then passed to the Execute SQL Task command. The advantage with this method is you can pass parameters to the scripted MDX query and for example loop through multiple departments in SSIS. Your database table will then contain the combined data from multiple departments using the same MDX query.

The article needs to be edited back into the correct order.



vincent.miele
vincent.miele
Valued Member
Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)

Group: General Forum Members
Points: 68 Visits: 149
I found the article quite interesting but when I tried to implement I get an error(Failed validation and returned error code OxC020801C) when I add the Format=Tabular to the connection string for the MDX source. Any ideas why this would be?
denglishbi
denglishbi
Right there with Babe
Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)

Group: General Forum Members
Points: 763 Visits: 1362
Can you provide some more information in regards to the error that you are seeing? At what point in the package are you getting the error? If you use the OLEDB data source you definitely need to incorporate Format=Tabular in the connection string. What version of SSIS are you using?

I have a Microsoft Connect item currently submitted for a bug with SSIS 2008 in regards to the ADO NET source and there is still an issue when use the OLEDB source in a Data Flow Task within a Loop Container that I have logged here - SSIS 2008 ADO NET Source issue with SSAS data source - error code 0x80004002.

I also have a posting about using SSAS data with SSRS and this does talk about using SSIS against SSAS also.

Using Reporting Services (SSRS) with SSAS data

----------------------------------------------------------------------------------------
Dan English - http://denglishbi.wordpress.com
vincent.miele
vincent.miele
Valued Member
Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)

Group: General Forum Members
Points: 68 Visits: 149
I am impleminting this using an data cube on an anlysis server we have here I am getting the error when selecting the columns option in the OLE DB Source editor. If I remove the Column=Tabular option I do not get the error, of course the package does not work correctly either.

I am using SSIS designer version 9.00.1399.00

The error message is a little different today:

Error at Package2[Connection Manager "Finanace2"}: An OLE DB error has occurred. Error Code: 0x8004005
An OLE DB record is available. Source:"Microsoft OLE DB Provider for Analysis Services 2005" Hresuslt: 0x80004005 Description: "Internal error: An unexpected exception occurred."
An OLE DB record is available. Source:"Microsoft OLE DB Provider for Analysis Services 2005" Hresuslt: 0x80004005 Description: "XML parsing failed at line 1, column 510: unexpected end of input."
Error at from MDX to SQL [MDX Source[1]]: The AcquireConnection method call to the connection manager "Finance2" failed with error code oxC0202009.

Additional information:
Exception from HRESULT: 0xC020801C (Microsoft.SqlServer.DTSPipelineWrap)
denglishbi
denglishbi
Right there with Babe
Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)Right there with Babe (763 reputation)

Group: General Forum Members
Points: 763 Visits: 1362
You definitely need to use Format=Tabular in the connection string with the OLE DB source going against an SSAS source. I would highly recommend installing the latest service pack, SQL Server 2005 Service Pack 3 (SP3) – now available, also since you are only using the RTM release (SQL Server 2005 Build List).

Are you able to preview the SQL Command properly in the OLE DB source in the Data Flow Task? You could also setup a trace on the SSAS instance with Profiler to see what if anything is being passed to further troubleshoot this issue. Setup logging on the package to and see if you can get additional information in regards to the specifics of the error. This might have been resolved in a service pack too, so I would recommend getting up-to-date with that first.

----------------------------------------------------------------------------------------
Dan English - http://denglishbi.wordpress.com
vincent.miele
vincent.miele
Valued Member
Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)Valued Member (68 reputation)

Group: General Forum Members
Points: 68 Visits: 149
Thanks for the tip. I installed the microsoft updates and it works now.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search