zey*_*zey 7 sql-server-2008-r2 connectivity
当我连接到本地服务器时,我收到此消息
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)
Run Code Online (Sandbox Code Playgroud)
这是我的登录信息:
SQL Server 服务已启动并处于运行状态。我正在连接到默认实例。
我该如何解决?
转到 SQL Server 配置管理器
开始->所有程序->SQL Server 2008 R2->配置工具->SQL Server配置管理器
探索“SQL Server 网络配置”,然后选择“MSSQLSERVER 的协议”。
检查右侧窗格中的 TCP/IP 协议。如果它被禁用,则启用它并重新启动“SQL Server 2008 R2 服务窗格”中可用的“Sql Server(MSSQLSERVER) 服务”。
您可以按照相同的步骤来确保其他协议和服务。