我試圖從我的ASP.NET Web應用程序連接到遠程SQL Server 2008 Express數據庫,但錯誤拋出:錯誤,當連接到遠程SQL Server
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)
如何解決這個問題。謝謝!
我們可能在這裏需要更多信息。特別是,如果您嘗試連接到另一臺服務器上的SQL Express,請不要,因爲您不能。 Express不支持它。但是,如果你在同一臺服務器上......我們能獲得更多信息嗎? – Andrew
@Andrew這是一個不正確的陳述。您確實可以遠程連接到SQL Server Express實例。查看我的答案,瞭解具體情況。 – 2011-10-14 21:54:23
@Shark我的壞...由於某種原因,我以爲不然。感謝您的更正。 – Andrew