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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Cannot Load Data Model SQL Server Error 40

Hello all,

 

I am having issues connecting to Power BI Desktop. Everytime I try to open a PBIX file, an error message reads "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)" Once I close that out, I am able to see the data model but I am unable to see the visualizations. I have looked online to find problems like this, but I have not found a solution that has worked. 

1 REPLY 1
d_gosbell
Super User
Super User

This does not sound like an issue with Power BI as such but it sounds like there is a permissions or network issue with the data source for the file you are attempting to open.

 

You would get this sort of error if you were trying to open an existing PBIX file that has been setup with a direct query data source and you either do not have permissions to the data source or the data source is not accessible (this could happen if you are working from home and you've opened the pbix from onedrive, but are not connected to your work network). You might need to request assistance from you DBA or IT team to help resolve this.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.