ExecuteSql.GetDataReader Método (String)
No haga referencia directamente a este miembro en el código. Admite la infraestructura de SQL Server. Gets a data reader to execute the specified Transact-SQL batch.
Espacio de nombres: Microsoft.SqlServer.Management.Sdk.Sfc
Ensamblado: Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Sintaxis
'Declaración
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
- query
Tipo: System.String
A String value specifying the Transact-SQL statements to be run.
Valor devuelto
Tipo: System.Data.SqlClient.SqlDataReader
A SqlDataReader object that can be used to process the result sets returned by the Transact-SQL statements.