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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
alexkelly101757
Frequent Visitor

Powerbi and SQL Express giving unable to connect

Hello,

 

When I run power bi get data im getting the follow error:

 

"Unable to connect

We encountered an error while tryig to connect

 

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)""

 

The database I'm connecting to is a SQLEXPRESS and I've used the connect <servername>\SQLEXPRESS.   I can connect to a SQL server 2012 without issue.  I just cant connect to SQL Express.  Any advice welcome 

 

Thanks 

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @alexkelly101757,

 

Are you able to connect from other tools, such as Access or SSMS (installed locally using the same credentials)? Have you tried connecting using IP address instead of name, or specifying the database name vs. leaving it blank? 

 

Please follow the article below to troubleshoot this connection error.

Troubleshoot Connecting to the SQL Server Database Engine

Exception: A network-related or instance-specific error while establishing a connection to SQL Serve...

 

Regards,

Yuliana Gu

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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