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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
carlosDash
Advocate V
Advocate V

How to change SQL credentials? Clicking "Data source settings" gives an error.

Hi,

 

I need to change the credentials I'm currently using to access a SQL Server database data source, but I can't seem to find a way to do it. If I've understood correctly, it should be done via "Data source settings" button in the Query builder, but whenever I click the button, I get the following popup window: "Error Message: Object reference not set to an instance of an object."

 

Is any way to change credentials other than using "Data source settings"?

 

Thanks,

 

Edit: I have no idea what happened with the subject of this post. It's not what I wrote. Corrected subject on 21.4.2017.

3 REPLIES 3
SathyaG35
Frequent Visitor

Under Edit Queries you can find the option Data Source Settings. Change the credidentials for the datasource you have.

v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @carlosDash,

Is any way to change credentials other than using "Data source settings"?

As far as I know, using "Data source settings" is the only way to change credentials for data source currently.

 

What's the version your Power BI Desktop? Have you tried uninstalling it and installing the latest version to see if the error remains? Smiley Happy

 

Regards

Hi @v-ljerr-msft,

 

I'm running the latetest Power BI desktop solution (no idea how to check the version number). I haven't tried uninstalling or re-installing, but I had this problem with my previous computer as well. 

 

I just noticed that it most likely has to do with me creating a "Blank Query" and then copy pasting my data source settings from a text file. The data is retrieved just fine and my report works the way I want it to, but I just can't get the "Data source settings" to work. 

 

I think this is more of a bug than a feature. I might create a bug report about it. 

 

Thanks for your reply 🙂

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors