我有一個服務,會談到本地 SQL Server實例。我收到錯誤SQL Server超時
System.Data.SqlClient.SqlException:
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)
此錯誤間歇性發生。由於這是我持續集成過程的一部分,因此我必須再次執行整個構建過程,這是很痛苦的。
我想說清楚,我不是每次都遇到這個問題的隨機性質。
請幫我這個。
「請幫我這個 。」 - 沒有太多去。你有一個間歇性的問題;我們沒有足夠的信息。 – 2011-04-25 08:32:30
您是否使用ASP.net網站,贏取表單應用程序和PHP網站連接到數據庫。你在用什麼:)?你打電話詢問什麼樣的問題? – Ivo 2011-04-25 08:34:27
我正嘗試通過Windows服務進行連接。 – Sandeep 2011-04-25 08:43:53