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;
The created MimerDataReader object.
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.
| Exception Type | Condition |
|---|---|
| InvalidOperationException | The Connection is not Open. |
| MimerException | A database server error occurred while executing the statement. |
| ArgumentOutOfRangeException | The data value of a parameter value was too large or too small to be converted to the database type. |
| InvalidCastException | The 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. |
MimerCommand Class | Mimer.Data.Client Namespace | MimerCommand.ExecuteReader Overload List