Dela via


ExecuteSql.GetDataReader Method (String)

Do not reference this member directly in your code. It supports the SQL Server infrastructure. Gets a data reader to execute the specified Transact-SQL batch.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Function GetDataReader ( _
    query As String _
) As SqlDataReader
'Usage
Dim instance As ExecuteSql
Dim query As String
Dim returnValue As SqlDataReader

returnValue = instance.GetDataReader(query)
public SqlDataReader GetDataReader(
    string query
)
public:
SqlDataReader^ GetDataReader(
    String^ query
)
member GetDataReader : 
        query:string -> SqlDataReader 
public function GetDataReader(
    query : String
) : SqlDataReader

Parameters

Return Value

Type: System.Data.SqlClient.SqlDataReader
A SqlDataReader object that can be used to process the result sets returned by the Transact-SQL statements.