I'm using an OleDbDataReader
, but it only reads 29,991 of 95,526 records:
OleDbCommand command = new OleDbCommand("select * from [data$]", connection);
using (OleDbDataReader dr = command.ExecuteReader())
{
while (dr.Read())
{
c++;
row1Col0 = dr[0].ToString();
}
Console.WriteLine(c);
}
Why doesn't it read all records?