MiniExcel icon indicating copy to clipboard operation
MiniExcel copied to clipboard

生成的xlsx文件不能使用OLEDB方式导入数据库

Open peterd1228 opened this issue 3 years ago • 2 comments
trafficstars

Excel Type

  • [ ] XLSX

阿翰: 你好! 今天打算将生成的文件导入MSSQL库,使用

INSERT INTO table select * from OPENROWSET('Microsoft.ACE.OLEDB.12.0','Excel 12.0;HDR=Yes;IMEX=1;Database=','sql语句')

报错 External table is not in the expected format.

如果 将 excel文件 另存为 还是这个格式,这个导入就能成功。

可能这个也不算bug,但我也没找到这个具体是什么格式,还请解下惑,谢谢!

MiniExcel Version

Description

peterd1228 avatar Mar 01 '22 05:03 peterd1228

我的解决方案是统一优先 miniexcel读取 OLEDB 后备.

densen2014 avatar Jan 20 '23 22:01 densen2014

我使用Navicat导入也是报错,使用office另存为xlsx后也不行,但另存为xls后就可以了

shamork avatar Aug 31 '23 06:08 shamork