Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

View created in SQL query in SSMS VS Using the same SQL query created in PBI

Has anyone ever investigated the difference between:
1. A SQL query within Power BI Query Editor (when specifying connection string, selecting advanced and putting code in the SQL Command box)
2. Linking Power BI to a View in the SQL DB with exactly the same code.

 

I understand the choice between the two depends on the level of access you have to the SQL DB, but is there any difference in terms of performance (i.e. effect on resources) and the associated user experience when refreshing and consuming the actual report?

 

My assumption here is using Import, not Direct Query (don't know how the latter will affect it).

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

Actually, by my tests, the query for the two ways is the same in Advanced Editor so I think that there should be not any difference in terms of performance (i.e. effect on resources) and the associated user experience when refreshing for the two ways of connecting.

Best  Regards,

Cherry

 

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-piga-msft ,

 

Thanks for the response. Any other comments from the forum?

 

I understand the query is the same, but I'm wondering whether the data transfer and processing will work exactly the same? E.g:

  • Is the processing to create the View always done on the DB server, or will some processing be done on the local machine which is consuming the report? 
  • When using Power Query to import the data, is only the result returned to the local machine, or is all associated data retrieved with the processing then done on the local machine? (which would not be ideal)
  • Any other factors that I'm not considering?

 

Thanks!

 

P.S. I understand this changes completely when using Power BI Report Server, but let's leave that out of this question for now.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.