2016-04-21 49 views
0

使用ajax执行“Drill Through”查询后,得到以下例外(Error.)。我正在使用msmdpump.dll和SQL Server 2012.我附上了下面的代码片段。在2012年SSAS使用简单的“DrillThrogh”查询,提示以下异常(SSAS2012_Error执行“DRILL Through”查询时发生异常

<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> 

回答

0

请问以下部分需要是标准的MDX? - 它不是标准的:

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