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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Fabian_MZ
New Member

Power Query: SQL-String does not show up anymore

Until now it was possible to get the SQL displayed that is sent to the server via ODBC.
The moment the query was refreshed, a window appeared with the SQL string to be confirmed.

 

This was possible via Option "Require user permission for native database queries" selected (checkmark set) in

[Data]/[Get data]/[Query options]/[Security].

image.png

 

The window does no longer appear just recently, the query runs directly (although the option is still selected). 

 

How can I now get the SQL string displayed that PQ sends to the server?

 

 

Windows-Excel-Version:

 image.png

2 REPLIES 2
Fabian_MZ
New Member

Hi Stephan,

to import that data is not my problem, I know how that works.

 

But the SQL I send to the server is build up by serveral parameters in PQ. 

So for debugging reasons it is necessary that at I have the option to see the SQL statement _before_ it is send to the server. 

Therfore I need that window to show up again - like it did (and like it should as far as I understand that option).

 

So how can I achieve that?

Anonymous
Not applicable

Hi @Fabian_MZ ,

 

Please refer to the following official document, it introduces how to enter a native database query and how to modify it.

Import data from a database using Native Database Query (Power Query).

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.

Top Solution Authors