dotConnect for SQL Server Documentation
Devart.Data.SqlServer Namespace / SqlCommand Class / ExecuteXmlReader Method

ExecuteXmlReader Method
Sends the CommandText to the SqlConnection and builds an XmlReader object.
Syntax
'Declaration
 
Public Function ExecuteXmlReader() As XmlReader
 

Return Value

Remarks
The CommandText property ordinarily specifies a Transact-SQL statement with a valid FOR XML clause. However, CommandText can also specify a statement that returns NTEXT or NVARCHAR data that contains valid XML, or the contents of a column defined with the XML data type.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also