如何调试OLE DB或ODBC错误(将数据从MySql导入Excel)

时间:2020-09-23 11:56:05

标签: mysql excel odbc powerpivot

我尝试在Windows 10上的Excel 32位中将表导入PowerPivot。

我到目前为止所做的:

  • 安装了MYSQL连接器mysql-connector-odbc-8.0.21-win32.msi(及其依赖项)

https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads

https://dev.mysql.com/downloads/connector/odbc/

  • 在Windows中使用“ MySQL ODBC 8.0 Unicode驱动程序”和“ ODBC数据源(32位)”管理器创建了一些ODBC DSN数据源。

  • 在Excel中启用了PoverPivot插件并打开了“管理”窗口。

  • 试图通过从导入向导的现有表列表中选择要从我的MySQL数据库导入表。

enter image description here

我收到以下错误:

OLE DB or ODBC error.

An error occurred while processing table 'a_unique_key_generationmethod'.

The current operation was cancelled because another operation in the transaction failed.

enter image description here

=>如何找到有关该错误的更多详细信息以解决该问题?

=>这是Excel或MySQL连接器的错误吗?

编辑:

作为解决方法,如果我使用自定义查询

enter image description here

SELECT * from a_unique_key_generationmethod

导入工作无误。因此,似乎原因 错误的原因不是我的数据库表造成的。

相关:

OLE DB or ODBC error. The current operation was cancelled because another operation in the transaction failed

0 个答案:

没有答案