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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Logging into Sql server failed

I wonder if anyone can help please? I am trying to set up a data source to the gateway via a connection to a SQL server. 

 

In desktop it works fine but when I attempt to add to the gateway I get the following error message - 

 

Unable to connect: We encountered an error while trying to connect to . Details: "We could not register this data source for any gateway instances within this cluster. Please find more details below about specific errors for each gateway instance."

Logging into Sql server failed. Possible reasons for this error include an invalid authentication mode, a missing login in Sql server, a login from an untrusted domain or a problem contacting the domain controller for the authentication request.


Anyone know what is causing this? Thanks 

3 REPLIES 3
GilbertQ
Super User
Super User

Hi @Anonymous 

 

If possible I would suggest a service account if that cannot be done, then when the password changes then you would have to update the gateway data sources?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

GilbertQ
Super User
Super User

Hi @Anonymous 

 

As per the error when setting this up in the PBI Service on the Gateway settings adding in a data source, are you using a login which has got access to the database?


Can you also confirm that the On-Premise Gateway can access the SQL Server. You can test this by logging into your server where the On-Premise gateway is installed and connect to the SQL Server with valid login credentials.

 

If the above works put in those same details in the data source.

 

Here are more details: Tutorial: Connect to on-premises data in SQL Server - Power BI | Microsoft Docs





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Hi  @GilbertQ  thanks for your reply 🙂 

 

We are able to login to the database through SSMS with the credentials that are producing the error on the Gateway, we can also use these credentials via Power BI Desktop using a Organisational Account Authentication method, so the login does have access to the database. Furthermore the problem does not seem to be with the Gateway, as we are able to switch the datasource to use different login credentials and connect to the SQL Server.
 
The problem with the credentials that work, is they are not for a service account, and therefore will require a password reset every so often.
 
Can you offer any more advice based on this info?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.