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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
andyor
Resolver I
Resolver I

Error attempting to setup gateway connection for SQL database on local server

Hi

 

Getting the following error when attempting to setup gateway connection to a SQL server database on a local server. I had no ttrouble when setting up a gateway connection to a CSV file in onedrive on local server. 

 

I have tried all authentication methods so I believe it's something in SQL stopping remote connections. Stackoverflow gives old solutions about enabling ports under IP addresses, but that option was only in SQL server 2015. Any ideas? 

 

 

Failed to update data source credentials: 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

 

 

 

 

andyor_0-1640821763835.png

 

2 REPLIES 2
Anonymous
Not applicable

Hi @andyor 

This error usually means that the client can't find the SQL Server instance. This normally happens when at least one of the following problems exist:

  • The name of the computer hosting the SQL Server
  • Instance does not resolve the correct IP
  • The TCP port number is not specified correctly

Checklist:

  • SQL Server are up are running
  • Check the correct instance name
  • Add in exception in firewall
  • Check if anti virus is using it
  • Check the SQL browser services

Please refer the following Microsoft document and cases that could also help you:

https://community.powerbi.com/t5/Desktop/SQL-Connection-error-Named-Pipes/td-p/29203

https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/troubleshoot-connecting-to-th...

https://support.microsoft.com/en-us/help/4009936/solving-connectivity-errors-to-sql-server

 

Best Regard

Community Support Team _ Ailsa Tao

TomMartens
Super User
Super User

Hey @andyor ,

 

what type of gateway are you using:

  • on-premises standard installation (aka enterprise gateway), recommended!
  • on-premises local installation

Is the gateway installed on a dedicated machine that is close to the SQL server instance, on your local desktop/laptop, or on the same machine? Make sure that you are able to ping the SQL server machine from the gateway machine. This, of course, is mandatory.


Check if the TCP/IP network protocol is enabled for the SQL Server instance you can test this using SQL Server configuration manager tool:

image.png

Check if the SQL Server instance allows remote connections, you can check the property of the instance using SQL Server Management Studio:

image.png

Hopefully, one of the mentioned aspects helps to tackle your challenge.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
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.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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