Forum Discussion
jsBrizius
Helper I
10 years agoWhy is DECLARE not supported (Error)?
It seems for some reason a DECLARE in the SQL Statement does not work? Here is a simple example...
- 10 years ago
Hi jsBrizius,
We reproduced same issue as yours. Power BI Desktop will always resolve the front end input SQL statement as a derived table. So when passing the SQL statement, the "Decalare"statement cause syntax error. See the fetched query in SQL profiler:
We have reported this issue internally.
Regards,
vissvess
Helper V
6 years agoBut what is this in case of Direct query..!
This converting the query into function and then invoking to a query and loading is converting the query to import mode..
What should I do for Direct query.
HarshVidap
4 years agoFrequent Visitor
I have the same issue, were you able to find the solution?