Partilhar via


Método ExecuteSql.GetDataReader (String, SqlCommand%)

Não referencie esse membro diretamente no código. Ele dá suporte à infraestrutura do SQL Server. Gets a data reader to execute the specified Transact-SQL statements, and specifying a SqlCommand object that can be used to terminate a long-running query.

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

Sintaxe

'Declaração
Public Function GetDataReader ( _
    query As String, _
    <OutAttribute> ByRef command As SqlCommand _
) As SqlDataReader
'Uso
Dim instance As ExecuteSql 
Dim query As String 
Dim command As SqlCommand 
Dim returnValue As SqlDataReader 

returnValue = instance.GetDataReader(query, _
    command)
public SqlDataReader GetDataReader(
    string query,
    out SqlCommand command
)
public:
SqlDataReader^ GetDataReader(
    String^ query, 
    [OutAttribute] SqlCommand^% command
)
member GetDataReader : 
        query:string * 
        command:SqlCommand byref -> SqlDataReader
public function GetDataReader(
    query : String, 
    command : SqlCommand
) : SqlDataReader

Parâmetros

Valor de retorno

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

Consulte também

Referência

ExecuteSql Classe

Sobrecarregado GetDataReader

Namespace Microsoft.SqlServer.Management.Sdk.Sfc