OLEDB connection does not read data from excel sheet

Posted by Pooja on Stack Overflow See other posts from Stack Overflow or by Pooja
Published on 2010-03-15T06:14:48Z Indexed on 2010/03/15 6:19 UTC
Read the original article Hit count: 282

Filed under:

Hi All,

i am getting a weird problem. i am using OLEDB for excel connection with connection string = Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\Execute.xls;Extended Properties=Excel 8.0;");

excel file contains columns with string/integer values. the problem is that sometimes connection read values from sheet absolutly fine but sometimes it missed out some data values and shows them as System.DBNull. the behavior is very inconsistent. please help.

© Stack Overflow or respective owner

Related posts about c#