Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to assign result name when using Exectue SQL Task and MDX

$
0
0

Can anyone help me with an Exectue SQL Task and MDX query?

The issue I am facing is that when I try to assign the result from an MDX query inside of the Execute SQL Task I get the error msg below.

The MDX query is below:

WITH

MEMBER [Measures].[ParameterCaption]AS [Time].[Rec Crt Dt].CURRENTMEMBER.MEMBER_CAPTION

SELECT

{[Measures].[ParameterCaption]} ONCOLUMNS

,[Time].[Rec Crt Dt].

LASTCHILDONROWS

FROM

[Usage]

The results are: 

                   ParameterCaption
2012-12-17 2012-12-17

If I do not return a resultset the task runs without error. However, when I try to return a results set I get the error msg below:

[Execute SQL Task] Error: An error occurred while assigning a value to variable "OBJ_pct_usage_reporting": "Result binding by name "[Measures].[ParameterCaption]" is not supported for this connection type. ".

I am assign my result row as [Measures].[ParameterCaption] and I am using an ADO.Net connection


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>