Mimer Data Provider

MimerCommand.ExecuteReader Method ()

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

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

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