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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
SSIMPSON
New Member

Cannot connect to a (localdb) sql server from Power BI service on the web

I am having trouble creating a Power BI Service data source connection to a local SQL server on my laptop. This is from the service not the desktop version.

 

I have the on-premise gateway installed on my laptop and I can use it on powerbi.microsoft.com to connect to an AWS SQL server as long as the gateway service is running. So I know the gateway is working.

 

But when I try to create a new Data Source to (localdb)\mssqlserver from powerbi.microsoft.com it says it cannot find the server or it is inaccessible. I have tried several ways of typing in the server name but no connection is achieved.

 

I can use the local DB from Power BI Desktop, but cannot connect to it on the web service through the gateway.

 

Where do I look for the problem? Am I typing in the server name incorrectly? Or is it something else?

 

Thanks

3 REPLIES 3
shukla
New Member

I have the same issue, have gateway (personal mode) installed but not able to connect to localdb in my laptop from Power BI Service. I just want to get this working. 

The design principles are still valid.  Power BI Service has no idea what "localdb"  means.  It needs a fully qualified machine name and database instance name.

 

lbendlin
Super User
Super User

Please show the gateway connection dialog.

 

Your setup is in violation of a couple of design principles

- never run anything else on a gateway cluster member

- never run a gateway cluster member on a machine that can be switched off arbitrarily

- never use localhost addressing with gateways

- never run a gateway on a single cluster member.

etc.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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