OdbcDataReader::Read Method ()
Advances the OdbcDataReader to the next record.
Assembly: System.Data (in System.Data.dll)
Implements
IDataReader::Read()The default position of the OdbcDataReader is before the first record. Therefore, you must call Read to start accessing any data.
While the OdbcDataReader is being used, the associated OdbcConnection is busy serving it until you call Close.
The following example creates an OdbcConnection, an OdbcCommand, and an OdbcDataReader. The example reads through the data, writing it out to the console. Finally, the example closes the OdbcDataReader, and then the OdbcConnection.
Available since 1.1
OdbcDataReader Class
System.Data.Odbc Namespace
Working with DataReaders