How to read more than 256 columns from an excel file (2007 format) using OLEDB

This is a limitation on the Jet OLEDB driver. One solution that might work (i.e. I haven’t tried it) would be to breakup the sheet into named ranges that are no wider than 255 columns and query for each of those separately (e.g. Select * From RangeName) and then merge the results into a single DataTable.

Leave a Comment