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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
msr15105k
Regular Visitor

Add second data source to a gateway

I have a report running in the online service that initially had one connection to an SQL database, using a gateway to connect to it. I attempted to add a second database from the same SQL server to the gateway, using basic credentials (username and password for the database). However, when trying to add this connection to the gateway, the following error appears, and the new connection is not created. Note that the credentials work properly when logging into the database directly from SQL Server Management Studio, so the credentials appear to be correct.

 

My understanding is that a single gateway is allowed to have more than connection.

 

Any ideas or solutions would be greatly appreciated.

 

Thanks.

 

msr15105k_0-1741006346000.png

 

3 REPLIES 3
v-tsaipranay
Community Support
Community Support

Hi @msr15105k ,

Thank you for reaching out to the Microsoft Fabric community forum. Also thank you @GilbertQ  for your inputs

 

The error you're facing while adding a second SQL database connection to the On-premises Data Gateway is likely due to an authentication mismatch or gateway configuration. Please ensure that the authentication type (Basic or Windows Authentication) used in the gateway matches the one used in SSMS.

If your SQL Server uses Windows Authentication, the gateway service account must have the necessary access permissions. Also, verify that both data sources have the same privacy level under Manage Gateways settings in Power BI.

Additionally, check if there are network restrictions or firewall blocks on TCP port 1433 between the gateway machine and SQL Server. Restarting the gateway service and enabling diagnostic logs can also help identify the issue.

For more information, please refer to Microsoft's official documentations:

Manage an on-premises data gateway | Microsoft Learn

Add or remove a gateway data source - Power BI | Microsoft Learn

 

I hope my suggestions give you good ideas, if you need any further assistance, feel free to reach out.

 

If this post helps, then please give us Kudos and consider Accept it as a solution to help the other members find it more quickly.

 

Thank you. 

GilbertQ
Super User
Super User

Hi @msr15105k 

 

I have seen this happen in the past and what it could be is that there are logon triggers that get executed when you log on to the SQL Server database. This is not elegantly handled in the power BI gateway. Your only option to get around this is to connect using an ODBC connection to SQL Server, which will work just as well. It's just it doesn't introduce issues with the logon triggers you. can you also contact your database administrator to confirm if there are log on triggers?





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

Proud to be a Super User!







Power BI Blog

The first database connects fine using the gateway, only the second one produces the error. Would you recommend ODBC connections for both databases/data sources?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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