共用方式為


Model.ExecuteXmla(String) 方法

定義

執行 XMLA 要求,並更新本機模型樹狀結構,以在要求執行之後比對位於 Analysis Services 實例上的模型。

public Microsoft.AnalysisServices.Tabular.ModelOperationResult ExecuteXmla (string xmlaRequest);
member this.ExecuteXmla : string -> Microsoft.AnalysisServices.Tabular.ModelOperationResult
Public Function ExecuteXmla (xmlaRequest As String) As ModelOperationResult

參數

xmlaRequest
String

要執行的 XMLA 要求

傳回

ModelOperationResult 具有 XMLA 要求執行的結果。

範例

可以傳遞的有效 XMLA 要求範例:

<Refresh xmlns=「」 http://schemas.microsoft.com/analysisservices/2014/engine>< DatabaseID > TMTestDB < /DatabaseID >< Partitions >< !-- Begin Refresh Partition schema -- > .... ! <-- 結束重新整理資料分割架構 -- >< row xmlns=「urn:schemas-microsoft-com:xml-analysis:rowset」 >< ID.Table > {{TableName}} < /ID.Table >< ID.Partition{{PartitionName}} < /ID.Partition ><> RefreshType{{RefreshType > }} < /RefreshType >< /row <> /Partitions >< /Refresh>

備註

傳遞至這個方法的 XMLA 要求會包裝至 < Command >< /Command > 元素。

適用於