将连接
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=1.xls;Extended Properties=“Excel 8.0;HDR=YES;IMEX=1”
修改为:
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=1.xls;Extended Properties=“Excel 12.0;HDR=YES;IMEX=1”
可参考:
https://blog.youkuaiyun.com/wanglepingwangleping/article/details/105999083
本文介绍如何将用于连接Excel文件的OLEDB连接字符串从Microsoft Jet转换到Microsoft ACE,以适应不同版本的Excel。具体操作是将Provider和ExtendedProperties部分进行相应调整。

被折叠的 条评论
为什么被折叠?



