2013-09-26 39 views
1

我試圖從本地SQL Server Mangement Studio連接到Azure上虛擬機上承載的SQL Server。 我跟着從 http://www.windowsazure.com/en-us/manage/windows/common-tasks/install-sql-server/所有的指令和創造了必要的終點:Uanble在Windows Azure虛擬機上從本地連接到SQL Server

enter image description here

不知怎的,我無法連接到SQL Server,收到此錯誤


Cannot connect to xxx.cloudapp.net. 
ADDITIONAL INFORMATION: 

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) 
(Microsoft SQL Server, Error: 53) 


The network path was not found 

我試圖暫時禁用vm上的windows防火牆 - 沒有成功。有什麼建議麼?

+0

這個任何更新一?我得到了同樣的東西... – RMiranda

+0

不幸的是沒有。 –

回答

0

我有同樣的問題,這troubleshot幫我越來越接近解決方案:

Use SQL Server Management Studio to connect remotely to an SQL Server Express instance hosted on an Azure Virtual Machine

綜上,我做什麼,我不知道如果這些步驟都是必要的,所以你每一個後應測試:

1)在SQL Server配置管理器啓用協議

2)在虛擬機命名管道添加Windows SQL Server的端口防火牆入站規則(在我的情況下,默認1433,在你的這似乎是1435,確保它是1435在SQL Server配置)

3)確保您使用的是SQL Server身份驗證登錄(而不是Windows身份驗證),如果你沒有一個在虛擬機在本地創建> MSSMS

4)確保SQL服務器配置爲混合身份驗證(http://www.katieandemil.com/microsoft-sql-server-error-18456-login-failed-for-user

5)確保SQL Server瀏覽器運行

希望這有助於:)

相關問題