Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I am trying to load postgres database tables through ODBC. I can load some tables from the database but i get above error while trying to load other tables.
If i check it on my terminal for logs , database is receiving folliwng query -
Error code 42601 means there is a syntax error.
Please check if your statement is correct.
When i check your sql statement, it is hard to understand what this code realized.
Your code is like
select ** from **where*** order by *** select** from** where***
Based on my knowledge, the basic structure of sql statement is like:
select **** from *** where*** order by****
It doesn't support to add "select" statement after "Order by columns...".
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yes, you are correct, it looks like syntax error. But only thing i have done is select on a table (click) and then selected the load button in power bi. I have not written any syntax and that's why i am confused why its giving me the syntax error, even when I have not written single word (statement) of sql. above query is auto generated by power bi.
Can someone help me with this!!!
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
25 | |
12 | |
12 | |
11 | |
8 |
User | Count |
---|---|
42 | |
27 | |
14 | |
13 | |
13 |