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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register 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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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