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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Connect to local mssql database throught data gateway

Hi, 

I'm trying to connect to mssql database on the same machine as the installed data gateway. I can easily connect to some excel docs on the same machine with the same account and same gateway. 

When I try one-word SQL server names I get a "Login failed" error (but with the same credentials, I can connect to Excel and the user has rights on DB). 

When I connecting to DB from Power BI Desktop I can use (local) or "<name>" as server name and Power BI is connected, on the web portal, the one-word names don't work. 

And when I use more words (e.g. <name>\mssqlserver) then I got errors as instance not found. It is strange cause with the same settings I can easily connect from the Desktop. 

Can you help me please? 

Thanks

Lukas

Note: Database is only local, it isn't open to internet. I need to transfer data throught gateway...

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, 

thanks for response. 

 

When I tried full name in desktop pwbi then it works BUT only on desktop. I can't add this datasource to gateway. The error message was Login failed. 

 

But I found solution. When I have used short PC name, Windows authentification and domain\username login, it works. I have no idea why it didn't work for basic authentification. But I'm now very happy it works 😄

 

Lukas

View solution in original post

2 REPLIES 2
GilbertQ
Super User
Super User

Hi @Anonymous 

 

What happens when you use the PC's full name which you can find under system settings?

 

Or what happens if you try and use the Internal IP Address of the PC?





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

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

Hi, 

thanks for response. 

 

When I tried full name in desktop pwbi then it works BUT only on desktop. I can't add this datasource to gateway. The error message was Login failed. 

 

But I found solution. When I have used short PC name, Windows authentification and domain\username login, it works. I have no idea why it didn't work for basic authentification. But I'm now very happy it works 😄

 

Lukas

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.