我在Windows XP上安裝了SQL Server 2008 R2。而且我無法通過Management Studio或ASP.NET連接到SQL Server。我嘗試連接到另一臺服務器上的另一臺SQL Server,但我沒有連接。我的電腦允許遠程連接。之前也沒有這樣的問題,我以前成功連接過。SQL Server連接
錯誤是:
Cannot connect to mycomputername.
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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)
我應該怎麼處理這件事?謝謝..
哦,還要檢查是否允許TCP連接 - 從SQL Server配置管理器工具:在SQL Server網絡配置下,應該顯示您的實例;檢查它是否有TCP/IP設置爲啓用(和/或命名管道,如果你是連接的方式)。 –