2014-01-29 66 views
0

我在堆棧溢出中看到了有關此查詢的所有線程。但我找不到任何解決方案連接到SQL Server 2012數據庫的錯誤

在早上,當我在Visual Studio 2010上嘗試一個項目時,它工作得很好,現在運行Visual Studio項目後重新啓動,我得到這個錯誤,甚至我的SQL Server 2012沒有連接什麼是必須的問題?

錯誤:

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)

+1

您的SQL服務器實例是否正在運行? – Jason

回答

0

我發現這個問題的解決。我是實例是正確的,但TCP/IP被禁用

轉到SQL服務器配置工具並打開sql服務器配置管理器。點擊您想要更改的實例。點擊協議,然後啓用TCP/IP。它現在工作正常:)