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
cerequena
New Member

Using custom SQL via ODBC throws errors

We are trying to use custom SQL as a data source against PostgreSQL, using the latest, official ANSI and Unicode PostgreSQL drivers for Windows.
We are unable to customize the SQL  statement beyond "Select * from table" - anything else throws ODBC errors.
Does anyone know of potential solutions?

1 ACCEPTED SOLUTION
cerequena
New Member

I discovered that PosgreSQL requires double quotes around all column names to avoid errors.

This solves the issues. Thank you.

View solution in original post

2 REPLIES 2
cerequena
New Member

I discovered that PosgreSQL requires double quotes around all column names to avoid errors.

This solves the issues. Thank you.

V-pazhen-msft
Community Support
Community Support

@cerequena 

 

What is the error message? You can try find similar discussions for that specific error message. They usually have fixes in the replies.

 

e.g.
Solved: Getting Data from ODBC using SQL statement - Microsoft Power BI Community

PostgreSQL Major: "OLE DB or ODBC error: [Expression.Error] We couldn't fold the expression to the d...

 

 

Paul Zheng _ Community Support Team
If this post helps, please 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.

Top Solution Authors
Top Kudoed Authors