I'm trying to import a MySQL query into MS Excel using Power Query. I get a database connection error, although everything else is working fine (the query, in a different program, included). I assume this would be due to the fact that the code contains user-defined variables, as such:
SET @c:=1
Apparently Power Query doesn't like that, because replacing all instances of this variable makes the code work.
I could replace this variable by its value, but that would cost me a lot of time and would not be very elegant. I found what seemed to be a solution here, but if I try to do something along the lines of that, I get asked for permissions I cannot give, as this might affect the database.
Does anyone have an idea about what I need to do? Any workarounds? Any help would be greatly appreciated. Thank you!