xSQL Schema Compare SDK version 9.5 for SQL Server
GetReader(String,CommandBehavior) Method


The data reader query.
The command behavior.
Gets a SqlDataReader object for the specified query.
Syntax
'Declaration
 
Public Overloads Function GetReader( _
   ByVal query As System.String, _
   ByVal behavior As System.Data.CommandBehavior _
) As System.Data.SqlClient.SqlDataReader
public System.Data.SqlClient.SqlDataReader GetReader( 
   System.string query,
   System.Data.CommandBehavior behavior
)
public: System.Data.SqlClient.SqlDataReader* GetReader( 
   System.string* query,
   System.Data.CommandBehavior behavior
) 

Parameters

query
The data reader query.
behavior
The command behavior.

Return Value

A System.Data.SqlClient.SqlDataReader object.
Exceptions
ExceptionDescription
System.ArgumentNullException

The query parameter is null

System.ArgumentException

The query parameter is an empty string

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

Reference

SqlConnectionManager Class
SqlConnectionManager Members
Overload List

 

 


┬ęCopyright 2018 xSQL Software. All Rights Reserved.

Send Feedback