ExecuteReader method

Description

Executes a SQL statement that returns a result set.

Syntax 1

AseDataReader ExecuteReader( )

Syntax 2

AseDataReader ExecuteReader( CommandBehavior behavior )

Parameters

behavior: One of CloseConnection, Default, KeyInfo, SchemaOnly, SequentialAccess, SingleResult, or SingleRow.

The default value is CommandBehavior.Default. For more information about this parameter, see the .NET Framework documentation for CommandBehavior Enumeration.

Return value

The result set as an AseDataReader object.

Usage

The statement is the current AseCommand object, with CommandText and Parameters as needed. The AseDataReader object is a read-only, forward-only result set. For modifiable result sets, use an AseDataAdapter class.

See also

“AseDataAdapter class” and “AseDataReader class”.