今天我去连接到本地数据库,但由于未知原因无法连接。我输入(本地)并使用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