OleDbConnection gets “External component has thrown an exception.”

后端 未结 6 1830
予麋鹿
予麋鹿 2020-12-20 11:44

I\' m using a Windows Forms application to export data to excel.

Application is built both x64 and x86.

So both version of Microsoft Access Databse Engine mu

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-20 12:18

    I can propose a horrible solution but when you are under pressure, it works. Open the Excel file and save it as an xls file instead of xlsx. Install the ACEOLEDB.12 32 bit version and pull your data in that way. This is not the answer, but it may suffice as a work-around.

    For most occasions, the "Flat File" import in SQL Server option will work just fine.

提交回复
热议问题