Compartilhar via


Método GetDataReader (String)

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 batch.

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 _
) As SqlDataReader
'Uso
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

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.