错误提示:
TITLE: Connect to Server ------------------------------
Cannot connect to .\SQLSERVER2008R2.
------------------------------ 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)
------------------------------ BUTTONS:
OK ------------------------------
连接时服务器名用.试试
没有用的,我的数据库实例名是.\SQLSERVER2008R2
@尚飞龙: Windows防火墙有没有允许1433端口
你的SQL服务没开
看看配置工具里面服务开了吗
1、检查服务器名称是否正确;(可以用选择,别输入)
2、检查sql server服务是否启动;
3、重启电脑试试~
服务未开?
对的检查下服务有没有启动,还有在配置工具处把那些禁用的东东启用了,sql server configuration Manager中~~希望对你有帮助~~