Installing ngpsql to use PostgreSQL in PowerBI

回眸只為那壹抹淺笑 提交于 2019-12-12 10:40:04

问题


I'm trying to get data from a PostgreSQL database into PowerBI Desktop but it doesn't seem to work. I think the problem is with the installation with npgsql. When trying to setup a new database connection in PowerBI I type in the database and server, and this is the error message I get:

"Unable to connect Details: "PostgreSQL: We were unable to find a database provider with invariant name 'Npgsql'. This error could've been the result of provider-specific client software being required, but missing on this computer. To download client software for this provider, visit the following site and choose the 64-bit (x64) version of, at minimum, 'Npgsql version 2.0.12': https://go.microsoft.com/fwlink/?LinkID=282716""

I've tried going npgsql website and install the required components but I can't seem to get it working. I'm not a developer so this is a bit complicated for me. Does anyone know how to get these components installed? I very much appreciate your help!

I'm using Windows 10 on a Surface Pro 3 if this helps. And I do have Visual Studio Community installed as well.

Best, Bruno.


回答1:


I have downloaded and tried it with version 3.6.6

  1. Install npgsql
  2. During the installation stage, enabled "Npgsql GAC Installation" as GAC requires Npgsql.
  3. Restart the PC.

It should work now.




回答2:


The solution from this page helped me: https://community.powerbi.com/t5/Community-Blog/Configuring-Power-BI-Connectivity-to-PostgreSQL-Database/ba-p/12567

Select the option to install to the GAC during install of the program npgsql v3.x.x downloaded from this page https://github.com/npgsql/Npgsql/releases

It worked for me (although I do not know why:-)




回答3:


When you install Npgsql you should enable installation into the GAC. Otherwise component will not be automatically detectable to other programs.



来源:https://stackoverflow.com/questions/34020719/installing-ngpsql-to-use-postgresql-in-powerbi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!