Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configuring an MDX query on SSIS

enter image description hereHi I am having troubles configuring the SSIS task to run an MDX query. The parse works fine but it doesn't allow me to display the different columns of the query to map it

Here is the query i used:

SELECT [Measures].[# Consumers] ON 0,
      [Company].[Company Country Code].[Company Country Code].MEMBERS ON 1
FROM _CDM

The Error thrown is:

No Column information was returned by the SQL Command

Error snapshot

enter image description here

like image 975
Cherif Ghattas Avatar asked Jun 16 '17 14:06

Cherif Ghattas


1 Answers

You can use MDX Select as a Source in Data Transformation Task.
Two important notes:

  • Use MS OLE DB Provider for Analysis Services, configure it for your SSAS DB
  • In OLE DB Provider for AS, go to All Properties Tab, select Advanced section and type Format=Tabular for Extended Properties.

AS OLE DB Data Source
In this case, at OLE DB Source Editor you can input your MDX query.
Important - Preview button might not work, you should check query metadata switching to Columns tab.

like image 181
Ferdipux Avatar answered Sep 30 '22 18:09

Ferdipux