Power BI – Turning off (Disabling) Native Database Queries
In this quick blog post I am going to show how to turn off or disable having the dialog
box which pops
up when using Native Database Queries.
This can sometimes be an extra step on something that you have to action when refreshing your data either in the Query Editor or in Power BI Desktop.
NOTE: I was often prompted with the following below for EACH native database query.
As you can see below this is typically what would happen if I ran a native database query
-
I would first get the yellow car asking for permissions to run the native database query.
-
Then once I clicked Edit Permission I then got the following Window, showing me the query that is going to be run.
- Once I click Run it would then run the query.
- So this can be time consuming especially if I had multiple queries.
How to turn off or disable the Native Database Queries
In the steps below I will show how to easily turn (Disable) the native database queries
NOTE: I could complete the steps below from either being in the Query Editor or within Power BI Desktop.
-
Click on File and then Options and settings and then Options
-
Then under GLOBAL I clicked on Security
-
Then in the Security settings at the top it has got a section which says Native Database Queries you will see an option.
- And there is a tick
next to “Require user approval for new native database queries“ - I removed the tick.
- And there is a tick
- Then click
Ok.
Now I went back and ran my native database query and it simply
ran with no requests to Edit Permissions or to Run the query.
Conclusion
I have shown how to disable the native database queries which not only helps when I am developing but also assists me when my Power BI Desktop file is refreshing.
An outstanding share! I’ve just forwarded this onto a friend
who has been doing a little homework on this.
And he actually ordered me lunch due to the fact that I discovered it for
him… lol. So let me reword this…. Thanks for the meal!!
But yeah, thanks for spending the time to talk
about this subject here on your web page.
I appreciate the comment, and glad that I helped you out. To me that is what blogging is all about!
I think you’re giving a really useful tip but the title of the article is not very accurate.
The title suggests that you will disable (ie remove or prevent from working) the ability to run Native Database Queries… when really what your tutorial is doing is “disabling the prompt” or ” removing “Require[ment of] user approval” to run Native Database Queries.
Hi Elia,
Thanks for the comments and I totally agree, it all depends on how you interpret the Blog post title.
I am glad you found the tip useful.
Regards
Gilbert
I like the valuable information you supply on your articles.
I’ll bookmark your blog and take a look at again right here frequently.
I’m reasonably sure I’ll be informed lots of new stuff right right here!
Best of luck for the next!