How to read more than 256 columns from an excel file (2007 format) using OLEDB
        Posted  
        
            by Nan T
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Nan T
        
        
        
        Published on 2010-05-04T15:03:59Z
        Indexed on 
            2010/05/04
            15:08 UTC
        
        
        Read the original article
        Hit count: 338
        
I'm trying to import a excel file with more than 256 columns using OLEDB in C#. I tried all kinds of things, but it doesn't seem to be possible to read more than 256 columns from a excel (2007 format) file. I'm wondering if it's a bug or I'm simply missing something. Here is the connection string I used:
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=c:\myFolder\myExcel2007file.xlsx;Extended Properties="Excel 12.0
© Stack Overflow or respective owner