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