Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

Exporting MDX queries to SQL Relational Databases using SSIS 2005 Expand / Collapse
Author
Message
Posted Thursday, November 20, 2008 11:15 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 20, 2011 4:29 AM
Points: 4, Visits: 51
Comments posted to this topic are about the item Exporting MDX queries to SQL Relational Databases using SSIS 2005
Post #606307
Posted Friday, November 21, 2008 5:51 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Thursday, August 22, 2013 7:25 AM
Points: 347, Visits: 1,344
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
Post #606444
Posted Friday, November 21, 2008 9:42 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Friday, August 8, 2014 11:14 AM
Points: 20, Visits: 183
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.
Post #606647
Posted Monday, November 24, 2008 3:31 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 4:30 AM
Points: 5,344, Visits: 1,388
Excellent explanation. Good one...


Post #607395
Posted Wednesday, November 26, 2008 7:53 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, June 23, 2014 12:06 PM
Points: 12, Visits: 49
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.





Post #609102
Posted Friday, March 27, 2009 3:10 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, August 22, 2014 12:24 PM
Points: 32, Visits: 139
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?
Post #685411
Posted Saturday, March 28, 2009 6:27 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Thursday, August 22, 2013 7:25 AM
Points: 347, Visits: 1,344
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
Post #685549
Posted Monday, March 30, 2009 12:59 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, August 22, 2014 12:24 PM
Points: 32, Visits: 139
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)

Post #686406
Posted Monday, March 30, 2009 3:38 PM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Thursday, August 22, 2013 7:25 AM
Points: 347, Visits: 1,344
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
Post #686597
Posted Friday, April 3, 2009 2:09 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Friday, August 22, 2014 12:24 PM
Points: 32, Visits: 139
Thanks for the tip. I installed the microsoft updates and it works now.
Post #690222
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse