我試圖通過遠程計算機連接到MS SQL Server 2008 R2 Express Edition。 我收到此錯誤:連接到遠程Express Edition服務器時發生命名管道錯誤
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)
在運行SELECT CONVERT(char(20), SERVERPROPERTY('InstanceName')) instancenameting
我得到NULL
爲實例名稱。我已經啓動了SQL Browser服務,檢查TCP/IP是否啓用。
還能做些什麼?
如果你可以以localhost的身份登錄它,你會得到什麼選擇@@ Servername? – 2013-03-06 19:54:02
它顯示了一個不同的名稱,如IP-0A6E3175 – user2129794 2013-03-06 19:56:47
您還沒有提到您如何連接到服務器:您是使用SSMS,另一個應用程序還是您自己的代碼?如果它是你的代碼,連接字符串是什麼樣的?該錯誤提到命名管道,而不是TCP/IP,因此可能會錯誤配置某些內容。有一個很好的概述解決這個錯誤[這裏](http://blogs.msdn.com/b/sql_protocols/archive/2007/03/31/named-pipes-provider-error-40-could-not-open -a連接到SQL-server.aspx)。 – Pondlife 2013-03-06 19:57:11