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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Boyan
Helper I
Helper I

How do I edit a "Direct Query" source meaning I need to edit the actual SQL code?

Hi everyone,

 

I'm using a Direct Query to connect to various tables. Each object shows up in my model as a separate query and I only have one data source - the SQL server against which each Direct Query is run. All screen shots provided in Microsoft documents are WRONG – there’s no such clickable button as “Query Editor” so I am at a loss here.


All posts so far relate to editing a data source, that is NOT what I need to do. I need to edit the query, not the data source. How do I do that?

 

Boyan_0-1592578327908.png

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@Boyan 

If you go the report view you can right click on the query and see the 'Edit Query' option.  This doesn't show up if you are in the model view (which makes no sense).

2020-06-19_14-23-09.png

View solution in original post

2 REPLIES 2
jdbuchanan71
Super User
Super User

@Boyan 

If you go the report view you can right click on the query and see the 'Edit Query' option.  This doesn't show up if you are in the model view (which makes no sense).

2020-06-19_14-23-09.png

@jdbuchanan71 Thank you - that kicks the elusive "Query Editor" and from there I can right-click on the source and edit the query. Thank you!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.