我刚刚安装了SQL Server Express 2008 R2,并且在使用SQL Server Management Studio(本地)连接到它时遇到问题。无法连接到本地SQL Server Express 2008 R2
所有SQL Server服务的启动(SQL服务器(SQLEXPRESS),SQL Server浏览器,也DTC服务)
当我尝试连接,我得到了以下信息:
TITLE: Connect to Server
Cannot connect to (local).
ADDITIONAL INFORMATION:
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) (Microsoft SQL Server, Error: 2)
尝试连接到任何你的机器名称,而不是本地......它似乎有点高音ey有时 – forsvarir 2011-05-14 13:02:10
答案:在服务器名称字段中,我从'(本地)'切换到'[Comp-Name] \ SQLEXPRESS' – 2011-05-14 13:05:31