OleDbDataReader只读取95,526条记录中的29,991条

时间:2013-07-03 20:27:04

标签: c# oledbdatareader

我正在使用OleDbDataReader,但它只能读取95,926条记录中的29,991条:

OleDbCommand command = new OleDbCommand("select * from [data$]", connection);
using (OleDbDataReader dr = command.ExecuteReader())
{
    while (dr.Read())
    {
        c++;
        row1Col0 = dr[0].ToString();

    }
    Console.WriteLine(c);
}

为什么不读取所有记录?

0 个答案:

没有答案