今天我去連接到本地數據庫,但由於未知原因無法連接。我輸入(本地)並使用Windows身份驗證,就像我總是這樣做,但我得到這個錯誤。無法連接到本地SQL Server 2008數據庫
Cannot connect to localhost.
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) (.Net SqlClient Data Provider)
由於某種原因,我有mssql express(儘管我沒有安裝 - 也許來自視覺工作室???)和sqlserver。只有mssql express已啓動。發現它很奇怪,因爲sqlserver被設置爲自動但未啓動。 – Sharpoint 2011-05-10 19:43:59