简体   繁体   English

MS-Excel Power Pivot + Amazon Redshift:可以连接数据源吗?

[英]MS-Excel Power Pivot + Amazon Redshift: possible to connect the data source?

Hi: Has anyone ever managed to connect a Amazon Redshift database to Power Pivot in Excel 2013?您好:有没有人曾经设法在 Excel 2013 中将 Amazon Redshift 数据库连接到 Power Pivot? It does not seem to work and from my online searches, I found that many people are facing the same issue.它似乎不起作用,从我的在线搜索中,我发现很多人都面临着同样的问题。

For business intelligence / reporting purposes, I am using Power Pivot as an add-in for Excel 2013 on Windows 10 (32 bit version of Excel).出于商业智能/报告目的,我在 Windows 10(32 位版本的 Excel)上使用 Power Pivot 作为 Excel 2013 的加载项。

The database that I need to analyze is in Amazon Redshift (it is an export from Amazon Mobile Analytics).我需要分析的数据库位于 Amazon Redshift 中(它是从 Amazon Mobile Analytics 导出的)。 I have tried to connect it to Power Pivot as follows:我尝试将其连接到 Power Pivot,如下所示:

  • Get External Data / From other Sources获取外部数据/从其他来源
  • Others (OLEDB/ODBC)其他 (OLEDB/ODBC)
  • Connected to my Redshift database (the test connection works)连接到我的 Redshift 数据库(测试连接有效)
  • Select the table that I want to connect to, from the list shown从显示的列表中选择我要连接的表

I then get the error : "OLE DB or ODBC error. ODBC driver does not support the requested properties. An error occurred while processing table 'xxx'. The current operation was cancelled because another operation in the transaction failed.然后我收到错误消息:“OLE DB 或 ODBC 错误。ODBC 驱动程序不支持请求的属性。处理表 'xxx' 时出错。由于事务中的另一个操作失败,当前操作被取消。

I am able to download the data to Excel when I am not using Power Pivot: the download works perfectly well from the DATA menu in Excel.当我不使用 Power Pivot 时,我可以将数据下载到 Excel:从 Excel 中的 DATA 菜单下载非常好。 So it's not due to a basic issue like login or driver.所以这不是由于登录或驱动程序等基本问题。 I could not find a solution online.我在网上找不到解决方案。

Thank you!谢谢!

官方 Amazon Redshift ODBC 驱动程序对我产生相同的错误,但它与 postgresql 驱动程序配合良好,可从此处下载: http : //www.postgresql.org/ftp/odbc/versions/msi/

Yes, we have done that successfully.是的,我们已经成功地做到了这一点。

Ken,肯,

I too had the exact same problem, and stumbled onto this thread, having being unsuccessful in connecting Powerpivot to Redshift via the Amazon ODBC driver or the Postgres 8 driver (as suggested by an AWS engineer).我也遇到了完全相同的问题,并偶然发现了这个线程,未能通过 Amazon ODBC 驱动程序或 Postgres 8 驱动程序(如 AWS 工程师所建议的)将 Powerpivot 连接到 Redshift。

Note that a non-powerpivot connection (via Data > From Other Data Sources > Data Connection Wizard) is successful via the Amazon ODBC driver.请注意,非 powerpivot 连接(通过数据 > 从其他数据源 > 数据连接向导)通过 Amazon ODBC 驱动程序成功。 May be this is what amirbehzad is referring to?也许这就是amirbehzad所指的?

I did stumble upon and try the trial version of an OLE DB provider for Redshift from pgoledb.com and have been successful in pulling data from Redshift into Powerpivot.我确实偶然发现并尝试了来自pgoledb.com 的Redshift OLE DB 提供程序的试用版,并成功地将数据从 Redshift 提取到 Powerpivot。 I plan on trying out the full version of the OLE DB provider in the next week or so.我计划在下周左右试用 OLE DB 提供程序的完整版本。 It may well be worth it depending on your scenario, unless Amazon adds Powerpivot support to their ODBC driver.根据您的情况,这可能是值得的,除非亚马逊为其 ODBC 驱动程序添加了 Powerpivot 支持。

Note that the trial version of the OLE DB provider limits the results to 100 records and you can only view a limited number of tables via Powerpivot.请注意,OLE DB 提供程序的试用版将结果限制为 100 条记录,并且您只能通过 Powerpivot 查看有限数量的表。 The full version costs $580 and may well be worth it.完整版售价 580 美元,可能物有所值。

Another issue you may face with this OLE DB driver is if you need Mac support.您在使用此 OLE DB 驱动程序时可能面临的另一个问题是您是否需要 Mac 支持。 Hope this helps, and please share your findings.希望这会有所帮助,并请分享您的发现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM