Forum Discussion
OneWithQuestion
8 years agoPost Prodigy
View SQL query in direct query mode
Is there anyway to view the SQL generated by Power BI desktop for direct SQL queries? Thanks!
ricardocamargos
8 years agoContinued Contributor
Hi OneWithQuestion,
Power BI Desktop creates a file "FlightRecorderCurrent.trc." on:
"\<User>\AppData\Local\Microsoft\Power BI Desktop\AnalysisServicesWorkspaces"
Or you can also enable it on the file -> options -> diagnostics
References: https://docs.microsoft.com/en-us/power-bi/desktop-directquery-about
Thanks,
Ricardo
- OneWithQuestion8 years agoPost Prodigy
So it appears that the trace files generated cannot be opened which is really odd.
When I go to open it with Profiler I get this error: Can't open PowerBI trace file: Needs TraceDefinition 15.0.0.xml
- ricardocamargos8 years agoContinued Contributor
- OneWithQuestion8 years agoPost Prodigy2017, the one with SSMS 17.4
- Anonymous8 years agoNot applicable
OneWithQuestion,
Please update your SSMS from 17.4 to 17.5, then start the SQL Profiler trace in Admin mode, this way, you will be able to open the trace file.
Regards,
Lydia