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

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

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.