Developers community number 1 connection string reference

Read more than 65535 rows from xlsx by ole db provider C#

Posted 2010-09-24 14:37
by Vsevolod Chad
in the Excel Forum
When I run sql (select count(*) from table_name from xlsx file I result is 65535, but the excel sheet have more that 65535 rows. How fix it?
Connection string is :
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + FileName + ";Extended Properties=\"Excel 12.0 Xml; HDR=No;IMEX=1\"";
Use OleDBConnection and OleDbCommand
Copyright © 2012 ConnectionStrings.com   |   All Rights Reserved   |   Powered by CSAS   |   Send feedback, articles, requests and more connection strings here.