Método ExecuteReader
Executes Transact-SQL statements that return one or multiple result sets.
Namespace: Microsoft.SqlServer.Management.Common
Assembly: Microsoft.SqlServer.ConnectionInfo (em Microsoft.SqlServer.ConnectionInfo.dll)
Sintaxe
'Declaração
Public Function ExecuteReader ( _
sqlCommand As String _
) As SqlDataReader
'Uso
Dim instance As ServerConnection
Dim sqlCommand As String
Dim returnValue As SqlDataReader
returnValue = instance.ExecuteReader(sqlCommand)
public SqlDataReader ExecuteReader(
string sqlCommand
)
public:
SqlDataReader^ ExecuteReader(
String^ sqlCommand
)
member ExecuteReader :
sqlCommand:string -> SqlDataReader
public function ExecuteReader(
sqlCommand : String
) : SqlDataReader
Parâmetros
- sqlCommand
Tipo: System. . :: . .String
A String value that specifies the Transact-SQL command to be executed.
Valor de retorno
Tipo: System.Data.SqlClient. . :: . .SqlDataReader
A SqlDataReader object value that contains one or more result sets.
Comentários
The SqlDataReader object is returned to let the client process the data without requiring it to read all information into memory.
Consulte também