Mimer Data Provider

MimerCommand.ExecuteReader Method (CommandBehavior)

Executes the CommandText by the server at the specified Connection using the CommandBehavior and returns a MimerDataReader.

[Visual Basic]
Public Function ExecuteReader( _ 
   ByVal behavior As CommandBehavior _ 
) As MimerDataReader
[C#]
public MimerDataReader ExecuteReader(
   CommandBehavior behavior
);
[C++]
public: MimerDataReader* ExecuteReader(
   CommandBehavior behavior
);
[JScript]
public function ExecuteReader(
   CommandBehavior behavior
): MimerDataReader;

Parameters

behavior
A CommandBehavior value that specifies a description of the results of the query and its effect on the database.

Return Value

The created MimerDataReader object.

Remarks

This statement is typically used when the result of the SQL statement is a result set. However, any type of statement can be processed with the MimerDataReader. The FieldCount property returns a non-zero value for a result set and zero otherwise.

Exceptions

Exception TypeCondition
InvalidOperationExceptionThe Connection is not Open.
MimerExceptionA database server error occurred while executing the statement.
ArgumentOutOfRangeExceptionThe data value of a parameter value was too large or too small to be converted to the database type.
InvalidCastExceptionThe format of the value of one of the Parameters was invalid, or the application data type can not be converted to the target database type.

See Also

MimerCommand Class | Mimer.Data.Client Namespace | MimerCommand.ExecuteReader Overload List