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
DanCasSan
Helper V
Helper V

SQL Cube connection error

Dear community:

 

I am having trouble connecting to a cube I have in SQL from Power BI.

 

Currently, I connect to the server through a VPN and, I have managed to connect to the cube by Excel; However, when I want to do it from the Power I get the following error:

 

"Details:" Microsoft SQL: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) "

 

How could I fix this error and connect?

 

Regards,

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hi @DanCasSan 

Here are similar posts, you could refer to them, these should help you:

https://community.powerbi.com/t5/Desktop/Not-able-use-data-source-configured-on-on-premises-data-gat...

https://community.powerbi.com/t5/Desktop/Connect-to-SQL-server-with-Localhost-via-UNIX-socket/m-p/10...

https://community.powerbi.com/t5/Desktop/Can-t-connect-to-SQL-server/m-p/196782

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-lili6-msft.

None of the links that you have shared have helped me with the error, I tried to see if the connection was correct and I checked yes. I was able to connect to a table on the server, but not to the cube that I created.

Regards,

hi @DanCasSan 

If you still have problem, I would suggset you create a support ticket to get further help.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Community Champion
Community Champion

I Named Pipes enabled on the SQL Server?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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.