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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors