SQL Server连接本地异常

SQL Server连接本地异常_第1张图片

报错信息: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)

解决方法:右击计算机–属性,查看计算机名称;以计算机名作为username登录sql server,登录成功。
SQL Server连接本地异常_第2张图片

参考:https://www.cnblogs.com/lstory/p/7118046.html

你可能感兴趣的:(SQL,Server)