0

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?

Danny Beckett
  • 20,529
  • 24
  • 107
  • 134
Faisal Sajjad
  • 239
  • 2
  • 4
  • 13

0 Answers0