Partilhar via


Server.ExecuteReader Method

Definition

Executes given XMLA command and returns AmoDataReader

public Microsoft.AnalysisServices.AmoDataReader ExecuteReader (string command, out Microsoft.AnalysisServices.XmlaResultCollection results, System.Collections.IDictionary properties = default, bool wrapCommand = true);
member this.ExecuteReader : string * XmlaResultCollection * System.Collections.IDictionary * bool -> Microsoft.AnalysisServices.AmoDataReader
Public Function ExecuteReader (command As String, ByRef results As XmlaResultCollection, Optional properties As IDictionary = Nothing, Optional wrapCommand As Boolean = true) As AmoDataReader

Parameters

command
String

XMLA command

results
XmlaResultCollection

Results of the command execution

properties
IDictionary

Optional command properties

wrapCommand
Boolean

Whether the command needs to be wrapped into Execute and Command elements.

Returns

An AmoDataReader object, if command executed successfully. Otherwise, null.

Applies to