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

Direct Query with two linked servers?

I know Direct Query does not work when retreiving data from two separate servers, in which case Import must be used, but will it work if the two servers are linked?

6 REPLIES 6
gustavoleo
Advocate II
Advocate II

Direct quyery have a several limitations 

You should use a Data Virtualization Plataform such as Querona querona.com to connect multiple data sources and also permit to have the data on line

 

 

v-xjiin-msft
Solution Sage
Solution Sage

@Anonymous

 

I have made some tests in my Power BI desktop (Feb 2018 update). And I can use Direct Query to load linked server data with SQL statement in Advanced options:

 

3.PNG

 

Also, there's other way to load linked server in Power BI. Please refer:

https://community.powerbi.com/t5/Desktop/specifying-linked-server/td-p/294416 

 

Thanks,
Xi Jin.

Anonymous
Not applicable

Thanks for the fast reply @v-xjiin-msft!  I see you were able to query the linked server by itself but are you able to query both the linked Server and non-linked Server in the same query using Direct Query mode?

@Anonymous

 

Nope. It is not possible to query non-linked server.

 

Thanks,
Xi Jin.

Anonymous
Not applicable

@v-xjiin-msft

 

Sorry, I should have been more clear in my question.  Let me ask it a different way: in a scenario where two servers are linked, can both be queried in Direct Query mode at the same time or can just one of them?

Greg_Deckler
Community Champion
Community Champion

Wow, been a little bit since I've worked with linked servers. But, I'm going to go with probably not on this one. Typically linked servers are configured to enable the Database Engine to execute a Transact-SQL statement that includes tables in another instance of SQL Server, or another database product such as Oracle. But, those linked servers are still essentially separate instances or references and you generally have to write some funky SQL to reference them. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.