SQL 错误:验证实例名称是否正确以及 SQL Server 是否配置为允许远程连接?

SQL 错误:验证实例名称是否正确以及 SQL Server 是否配置为允许远程连接?

连接到本地 Sql Express 时出现以下错误。

An error has occurred. Details of the exception:
A network-related or instance-specific error occurred while establishing a conne
ction 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: SQL Network Interfaces, error: 26 - Error Locating Serve
r/Instance Specified)

Unable to connect to SQL Server database.

我能够使用 Management Studio 连接到 Sql Server。

答案1

您是否尝试使用与 SQL Server 安装在同一台计算机上的 Management Studio 连接到 SQL Server,或者尝试远程连接?如果您尝试远程连接,您是否尝试过本地连接?

相关内容