Forum Discussion
smpa01
Community Champion
5 years agoTSQL Query runs longer in Dataflow than in SSMS
Is there a reason why a TSQL query takes a lot longer (>15min) to run in DF than the same query in SSMS (~3min). The TSQL query is complex, consists of 4 large tables, table variable, scalar values, ...
- 5 years ago
Hi smpa01
if "not part of SYSADMIN", perhaps you can contact the database administrator to trace on the sql server.
FYI:
Why Is Power BI Running My SQL Query Twice?
https://blog.crossjoin.co.uk/2020/07/05/why-is-power-bi-running-my-sql-query-twice/
Why Does Power BI Query My Data Source More Than Once?
https://blog.crossjoin.co.uk/2019/10/13/why-does-power-bi-query-my-data-source-more-than-once/
Finding Power Query Query Execution Times In Power BI And Excel Using SQL Server Profiler
https://blog.crossjoin.co.uk/2019/02/09/power-query-execution-times-using-sql-server-profiler/Hope it helps!
Best Regards,
Community Support Team _ Tang
If this post helps, please consider Accept it as the solution✔️ to help the other members find it more quickly.