简体   繁体   中英

Unable to connect to Azure SQL Server. Getting an error “The Network path was not found”

I created an Azure SQL Server. I have set the firewall, added my IP address to the rules. I tried to log in using SQL Server Managment Studio but got the network error every time. I am using the Server Admin Login and password created while creating the SQL server. Are there any more steps required to log into the SQL Server? Note: I also enabled port 1433 for inbound connections on my PC.

在此输入图像描述

According to the error message, we should check the server name of the database.
We can select the database here, and SQL Server Managment Studio will type the server name automatically:
在此输入图像描述

Another way, we can find the information via azure portal, then type the server name manually: 在此输入图像描述

It seems you are using named pipes to connect to SQL database. What happens if you specify TCP/IP protocol in advanced properties tab? 在此输入图像描述

Thanks Everyone for your inputs. The only issue was, the firewall was blocking the port 1433 . After opening it, I could connect to the SQL Server hosted in Azure. The link below mentions the requirement to open the said port. https://docs.microsoft.com/en-us/azure/sql-database/sql-database-develop-direct-route-ports-adonet-v12

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