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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Cheywork91
Frequent Visitor

How do I limit the number of times PowerBI desktop queries a SQL database when password incorrect?

When the credentials change to  access our SQL database, anytime anyone enters the wrong password or they accidentally have old credentials somewhere saved in their project, it queries it numberous times then locks us out of the database.

Is there a way to say, if password incorrect, stop and give error message instead of trying to hit the database an excessive number of times? After the password is wrong once, it's never going to be right. 

3 REPLIES 3
amitchandak
Super User
Super User

@Cheywork91 , Unless scheduled on Power BI Service. Power bI do not make too many attempts to connect.

 

You can add connection time out for connection, under advance option

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

That's not correct in my experience. When you click refresh in PowerBI desktop, it hits the server multiple times, even after the password is wrong. It locks you out in under a 2 seconds usually, potentially in under 1.
FP
Frequent Visitor

I agree, is a problem we have, too.

We would need to "force" Power BI to give a message with the authentication error instead of to try several times to connect, because that lead to the lock of the user.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.