Cannot connect anymore to local SQL Server 2008 database(无法再连接到本地 SQL Server 2008 数据库)
问题描述
今天我去连接到我的本地数据库,但由于未知原因我无法再连接.我输入(本地)并像往常一样使用 Windows 身份验证,但出现此错误.
Today I went to connect to my local database but I cannot connect anymore for unknown reasons. I typed in (local) and used Windows authentication like I always do yet I get this error.
无法连接到本地主机.
发生与网络相关或特定于实例的错误建立到 SQL 的连接服务器.未找到服务器或无法访问.验证实例名称正确且该 SQL服务器配置为允许远程连接.(提供者:命名管道提供程序,错误:40 - 无法打开连接到 SQL Server) (.NetSqlClient 数据提供程序)
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)
推荐答案
SQL Server 服务是否正在运行?要进行检查,请右键单击我的电脑"并选择管理..."从窗口左侧的树中选择服务和应用程序",然后选择服务".查找SQL Server"服务并查看它是否处于已启动"状态.如果没有,请右键单击该服务并选择开始".
Is the SQL Server service running? To check, right-click on "My Computer" and choose "Manage..." From the tree on the left side of the window, choose "Services and Applications", then "Services". Look for the "SQL Server" service and see if it is in the "Started" status. If not, right-click on the service and choose "Start".
这篇关于无法再连接到本地 SQL Server 2008 数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:无法再连接到本地 SQL Server 2008 数据库


- 导入具有可变标题的 Excel 文件 2021-01-01
- 在SQL中,如何为每个组选择前2行 2021-01-01
- 使用 Oracle PL/SQL developer 生成测试数据 2021-01-01
- 如何使用 pip 安装 Python MySQLdb 模块? 2021-01-01
- 更改自动增量起始编号? 2021-01-01
- 如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql 2022-01-01
- SQL 临时表问题 2022-01-01
- 远程 mySQL 连接抛出“无法使用旧的不安全身份验证连接到 MySQL 4.1+"来自 XAMPP 的错误 2022-01-01
- 以一个值为轴心,但将一行上的数据按另一行分组? 2022-01-01
- 如何将 Byte[] 插入 SQL Server VARBINARY 列 2021-01-01