Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Connect to a PostgreSQL database

Hello,

 

I want to connect to a Postgre database so I tried two different types of connector:

 

- ODBC connector: At the beginning it worked very well and I was able to retrieve my tables. After no modification at all to the ODBC driver or to Power BI, I got this message:

"DataSource.Error : ODBC: ERROR [HY000] Error while executing the query
Détails :
DataSourceKind=Odbc
DataSourcePath=dsn=Postgre_Datake
OdbcErrors=[Table]"

I got this message even after uninstall and reinstall ODBC driver or Power BI.

But I ‘am able to retrieve my tables by making an SQL request in Power BI like for example: SELECT * FROM table But when making an SQL request it is very slow.

 

- PostgreSQL connector

I have downloaded: Npgsql-4.1.1.msi

Every time I tried to connect to my database with this connector, I get this message:

Details: "An error occurred while reading the provider: Cannot load file or assembly 'netstandard, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = cc7b13ffcd2ddd51' or one of its dependencies. The specified file cannot be found. '"

 

Does anybody had this kind of error on both connector types?

 

Thank you

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You may check if the following post helps.

https://community.powerbi.com/t5/Desktop/Not-able-to-connect-Postgres-SQL-database-from-Power-BI/m-p/663990#M319229

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You may check if the following post helps.

https://community.powerbi.com/t5/Desktop/Not-able-to-connect-Postgres-SQL-database-from-Power-BI/m-p/663990#M319229

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.