Click to Rate and Give Feedback
TechNet
TechNet Library
SQL Server
SQL Server 2008
Technical Reference
AdomdCommand Class
 ExecuteXmlReader Method

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
Other versions are also available for the following:
AdomdCommand.ExecuteXmlReader Method

Runs the AdomdCommand and returns an System.Xml.XmlReader.

Namespace: Microsoft.AnalysisServices.AdomdClient
Assembly: Microsoft.AnalysisServices.AdomdClient (in microsoft.analysisservices.adomdclient.dll)
Visual Basic (Declaration)
Public Function ExecuteXmlReader As XmlReader
C#
public XmlReader ExecuteXmlReader ()
C++
public:
XmlReader^ ExecuteXmlReader ()
J#
public XmlReader ExecuteXmlReader ()
JScript
public function ExecuteXmlReader () : XmlReader

Return Value

An System.Xml.XmlReaderthat contains the results of the command.
Exception typeCondition
AdomdErrorResponseException

The provider returned an error in response.

AdomdUnknownResponseException

The provider sent an unrecognizable response.

AdomdConnectionException

The connection was broken.

System.InvalidOperationException

An error occurred because one of the following conditions was met:

  • The AdomdConnection was not set.

  • The AdomdConnection was not opened.

  • Either the CommandText property or the CommandStream property was improperly set.

  • Both the CommandText property and the CommandStream property were set.

  • Neither the CommandText property, nor the CommandStream property, was set.

Instead of translating the XML for Analysis response from an XML format into an AdomdDataReader or CellSet, this method, returns an System.Xml.XmlReader that directly references the XML for Analysis response in its native XML format.

While the System.Xml.XmlReaderis in use, the associated AdomdConnection is busy serving the System.Xml.XmlReader. While in this state, the AdomdConnection can only be closed; no other operations can be performed on it. This remains the case until the Close method of the System.Xml.XmlReaderis called.

You should be prepared to catch any exception that can be thrown while using the System.Xml.XmlReader, such as the XmlException.


Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker