SqlCommand.IDbCommand.ExecuteReader Method

Definition

Overloads

IDbCommand.ExecuteReader()

Sends the CommandText to the Connection, and builds a SqlDataReader.

C#
System.Data.IDataReader IDbCommand.ExecuteReader();

Returns

A SqlDataReader object.

Implements

Applies to

.NET Framework 1.1
Produkt Versiounen
.NET Framework 1.1

IDbCommand.ExecuteReader(CommandBehavior)

Sends the CommandText to the Connection, and builds a SqlDataReader using one of the CommandBehavior values.

C#
System.Data.IDataReader IDbCommand.ExecuteReader(System.Data.CommandBehavior behavior);

Parameters

behavior
CommandBehavior

One of the CommandBehavior values.

Returns

A SqlDataReader object.

Implements

Applies to

.NET Framework 1.1
Produkt Versiounen
.NET Framework 1.1