Udostępnij za pośrednictwem


Model.ExecuteXmla(String) Method

Definition

Executes an XMLA request and updates the local model tree to match model residing on the Analysis Services instance, after the request execution.

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

Parameters

xmlaRequest
String

The XMLA request to execute

Returns

A ModelOperationResult with the results of the XMLA request execution.

Examples

Example of valid XMLA request that can be passed:

<Refresh xmlns="http://schemas.microsoft.com/analysisservices/2014/engine"> <DatabaseID>TMTestDB</DatabaseID> <Partitions> <!-- Begin Refresh Partition schema --> .... <!-- End 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>

Remarks

The XMLA request passed to this method will be wrapped into <Command></Command> element.

Applies to