我試圖通過SQL Server 2008 R2 SP2連接Azure的SQL數據庫。我正在使用免費試用訂閱的Azure。我已經搜索無處不在,想這些事情:無法通過ssms連接到azure sql
- 允許進場和outbounds規則Windows防火牆端口1433
- 檢查,在SQL Server配置管理器的TCP連接可用,端口1433
- 創建服務器上運行並且在Azure門戶網站數據庫,並配置IP津貼
我使用這些設置連接
- 服務器類型:數據庫引擎
- 服務器名稱:TCP:aaa.database.windows.net,1433/aaa.database.windows.net
- 登錄:BBB @ AAA
- 密碼:XXX
,誤差
"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: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) (Microsoft SQL Server, Error: 10060)"
PS我也無法ping通xxx.database.windows.net
並且無法telnet xxx.database.windows.net 1433
你有沒有試過用Visual Studio連接你的數據庫?登錄到新的門戶網站,然後** SQL數據庫** - > ** <您的數據庫> ** - > **工具** - > **在Visual Studio中打開** –
我最近有這個問題。事實證明,服務器本身沒有配置爲在端口1433上廣播 – Takarii
您能澄清一下,這是一個SQL Server數據庫(在虛擬機中運行)還是標準的Azure SQL數據庫(不在虛擬機中運行) – Takarii