“突然出现”错误:26 – 定位服务器/实例错误“

好的,有点解释。 我有两台独立的PC,两台PC都安装了SQL Server 2012 Express。 在安装过程中,我select了默认的选项。 同样在这两台机器上,我本地连接,即我使用该服务器自己的SQL Server Management Studio连接到相关的数据库。 没有远程机器连接完成。

从今天上午开始,我在两台机器中的一台上遇到连接问题。 SQL Server Management Studio不再能够连接到相同机器主机的SQL Server Express实例。 我不断收到这个错误:

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: SQL Network Interfaces, **error: 26 - Error Locating Server/Instance Specified**) (Microsoft SQL Server, Error: -1) 

我没有做任何改变,所以我不知道为什么这个错误已经开始出现了。 在显示此错误之前,正在运行(仍然是)的SQL服务如下所示:

 SQL Server (SQLEXPRESS) SQL Server VSS Writer (SQLEXPRESS) 

我见过很多地方build议打开SQL Server Browser服务,但我不认为这是问题,因为其他机器(它有自己的SQL Server 2012 Express安装),没有SQL Server浏览器启用,似乎工作正常。 但即使如此,我在有问题的服务器上启用了SQL Server Browser服务,仍然无法连接SQL Server Management Studio。 现在我得到这个错误:

 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: SQL Network Interfaces, **error: 28 - Server doesn't support requested protocol**) (Microsoft SQL Server, Error: -1) 

任何人都有什么想法可能造成这个?

确保SQL Server Browser服务设置为自动并正在运行。 如果没有运行,则外部来源不能查看客户端信息。

一旦运行,打开sQL服务器configurationpipe理器(这是一个MMC)导航到SQL Servernetworkingconfiguration(不是32位的一个)右键单击TCP / IP确保它已启用。 启用TCP / IP

然后再次右键点击| select属性| selectIP地址选项卡| 滚动到IPAll底部|清除dynamic端口| 将TCP端口设置为1433 TCP / IP设置

如果启用了本地防火墙,请确保您具有源服务器的TCP 1433的入站规则(试图达到您设置规则的那个规则)。 然后还从源服务器的1433出站规则。 如果有任何外围防火墙,请确保有适当的防火墙规则。

希望有所帮助。