Namespace: System.Data.Odbc
OdbcCommand
Represents an SQL statement or stored procedure to execute against a data source. This class cannot be inherited.
Methods (2)
OdbcCommand(String,Data.Odbc.OdbcConnection)Constructor
Initializes a new instance of the OdbcCommand class with the text of the query and an OdbcConnection object.
| Parameter | Description |
|---|---|
| cmdText | The text of the query. |
| connection | An OdbcConnection object that represents the connection to a data source. |
OdbcDataReader ExecuteReader
Sends the CommandText to the Connection and builds an OdbcDataReader.
Returns: An OdbcDataReader object.