2014-12-05 156 views
0

我已经安装了Microsoft SQL Server 2014 Management Studio,并且在笔记本电脑中使用了它几周(并且我没有更改任何设置),但是今天尝试连接到服务器时出现此错误与Windows身份验证:无法连接到SQL Server 2014

TITLE: Connect to Server

Cannot connect to HOSSEIN.

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: 53)

我还检查了SQL Server配置管理器和所有服务正在运行。

+0

许多事情可能会出错连接到分贝istance:你可以ping它?你知道港口吗?你可以在该端口telnet和opena套接字? 如果对所有问题都回答,那么我们可以设置一个别名。 – 2014-12-05 17:33:14

+0

别名工作,非常感谢:-) – 2014-12-05 19:33:04

回答

0

正如您所提到的,SQL服务运行良好。在这种情况下,当您输入错误的SQL Server名称时会出现上述错误,或者可以将其命名为实例。 如果它是默认的(MSSQLSERVER)实例,那么在通过SSMS连接SQL Server时尝试用点(。)代替servername,或者如果它名为SQL实例,则从SQL Server配置管理器中交叉检查实例名称。