2011-11-16 137 views
1

我正在将数据从MySQL导入到PowerPivot。我拥有所有相关的驱动程序。当我尝试导入的PowerPivot我收到以下错误:MySQL ODBC导入失败

当我从表的列表中进行选择:

Failed to retrieve data from companies. Reason: ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.1.58]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[companies].* FROM [companies]' at line 1

当我“编写一个查询“已验证我收到:

The following system error occurred: Catastrophic failure A connection could not be made to the data source with the DataSourceID of 'dc746dc9-4aaa-4e03-b938-f84a128f5671', Name of 'Custom'. An error occurred while processing the 'Query' table. The operation has been cancelled.

但是,我能够导入就好到Excel中。如何修复PowerPivot导入?

回答

0

就在今天我遇到了这个问题。看起来,Excel无法导入一个表,当它击中某个字段中的“可分割”时。在我的情况下,字段类型是文本,所以也许一些字段只包含很多数据。然后整个导入失败。

所以我所做的是选择其他选项,使用SQL查询导入。

select field_a, field_b from the_table 

在那里,你只是省略了导致问题的列,在你的情况下'自定义'。

如果你需要这个专栏,那么你可能有一个启发式的看看它的内容找到潜在的麻烦制造者。

0

一更好的方法可能是安装内置mysql的电源查询(然后可以通过电源支持)。