///////////////
Error
too many fields defined
Case-
////////////Solution
Where////////////// A1:R51 Sheet range , selected by columns
Error
too many fields defined
Case-
The
internal column count that Microsoft Access uses to track the number of fields
in the table has reached 255, even though you may have fewer than 255 fields in
the table. This can happen because Access does not change the internal column
count when you delete a field. Access also creates a new field (increasing the
internal column count by 1) for every field whose properties you modify.
Where////////////// A1:R51 Sheet range , selected by columns
using (OleDbDataAdapter oda
= new OleDbDataAdapter("SELECT * FROM Shee$A1:R51]",
excel_con))
{
oda.Fill(dt);
}