简体   繁体   中英

The network path was not found -Azure SQL Server

I am getting this error when I try to connect to Azure SQL Server.

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) (.Net SqlClient Data Provider)

I've been using the server and the databases under it for several months without a problem. The error starts after I deleted virtual network, public ip, virtual and local gateways, and some resources I created and played with. I've been searching the web the whole day but couldn't find the right solution.

My application that was deployed outside my network that's working find previously can no longer connect. I also set the firewall to accept all ip.

Sounds like the IP address of the server you're trying to connect from might've changed due to your changing of network infrastructure, and now your Azure SQL instance is denying the inbound connection. Get the outbound IP address of the computer you're trying to connect from, then check your Azure SQL Server's firewall rules to make sure that the address you're trying to connect to is whitelisted.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM