0

私はMDXクエリを初めて使用します。クエリを介してパラメータを渡そうとしています。それは私にこのSQLエラーを与えています:

クエリの準備に失敗しました。
この関数は、5引数のタプル式を想定しています。
タプルセット式が使用されました。

クエリは次のとおりです。

SELECT 
{
[Measures].[DENOMINATOR]
,[Measures].[NUMERATOR]
,[Measures].[Goal]
}
ON COLUMNS,
NON EMPTY
(
 [Dim Indicator].[Indicator Set].[Indicator Set].ALLMEMBERS
 ,[Dim Indicator].[Indicator Group].[Indicator Group].ALLMEMBERS
 ,[Dim Indicator].[Indicator Name].[Indicator Name].ALLMEMBERS
)
ON ROWS
FROM [Dummy-Dashboard]

--Parameter Queries goes here 

WHERE 
(
    strtoset(@DimGenderGenderID)
 )
4

1 に答える 1

0

パラメータを使用してクエリをテストする必要がある場合は、そのために XMLA を使用する必要があります。以下の xmla の例を参照してください。

    <Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/">
      <Body>
        <Execute xmlns="urn:schemas-microsoft-com:xml-analysis">
          <Command>
            <Statement>
              Your code in here
            </Statement>
          </Command>
          <Properties>
            <PropertyList xmlns="urn:schemas-microsoft-com:xml-analysis">
              <DataSourceInfo>Provider=MSOLAP;Data Source=local;</DataSourceInfo>
              <Catalog>CubeName</Catalog>
              <Format>Tabular</Format>
              <Content>Data</Content>
              <Timeout>0</Timeout>
            </PropertyList>
          </Properties>
          <Parameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:schemas-microsoft-com:xml-analysis">
            <Parameter>
              <Name>ParameterName</Name>
              <Value xsi:type="xsd:string">ParameterValue</Value>
            </Parameter>
          </Parameters>
        </Execute>
      </Body>
    </Envelope>
于 2012-11-02T15:11:09.487 に答える