执行" DRILL通过"时发生异常询问

时间:2016-04-21 13:08:22

标签: jquery ajax mdx

执行"钻取"使用ajax post查询我得到以下异常(Error.)。我使用的是msmdpump.dll和SQL Server 2012.我在下面附上了代码段。使用简单的" DrillThrogh" SSAS 2012中的查询获得以下异常(SSAS2012_Error

<script>
var query = "DRILLTHROUGH Select([Date].[Fiscal].[Fiscal Year].&amp;[2002],[Measures].[Reseller Sales Amount]) on 0 From [Adventure Works]RETURN[Reseller Sales].[Reseller Sales Amount],[Reseller Sales].[Reseller Order Quantity],[Reseller Sales].[Reseller Extended Amount],[Reseller Sales].[Reseller Tax Amount],[Reseller Sales].[Reseller Freight Cost],[Reseller Sales].[Discount Amount],[Reseller Sales].[Reseller Total Product Cost],[Reseller Sales].[Reseller Standard Product Cost],[$Date].[Date]";
var data = "<Envelope xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\"> <Header></Header> <Body> <Execute xmlns=\"urn:schemas-microsoft-com:xml-analysis\"> <Command> <Statement> " + query + " </Statement> </Command> <Properties> <PropertyList> <Catalog>Adventure Works DW</Catalog></PropertyList> </Properties></Execute> </Body> </Envelope>";

$.ajax({
    type: "POST",
    url: "http://localhost/Olap/msmdpump.dll",
    contentType: "text/xml",
    dataType: "xml",
    data: data,
    complete: ej.proxy(function (onComplete) {


    }, this),
    success: $.proxy(onSuccess, this),
    error: $.proxy(function (msg, textStatus, errorThrown) {

    }, this)
});

function onSuccess(e) {

}
</script>

1 个答案:

答案 0 :(得分:0)

以下部分是否需要标准mdx? - 它不是标准的:

Select([Date].[Fiscal].[Fiscal Year].&amp;[2002],[Measures].[Reseller Sales Amount]) on 0 From [Adventure Works]