provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQ...

本文详细介绍了如何解决在连接SQL Server时遇到的问题,包括网络相关错误和实例配置问题。通过修改账户设置为LocalSystemaccount,可以解决无法连接到指定SQL Server服务器的问题。

报错:

TITLE: Connect to Server
------------------------------

Cannot connect to XXXXX.

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

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=2&LinkId=20476

------------------------------

The system cannot find the file specified

------------------------------
BUTTONS:

OK
------------------------------

解决方案:

把this account前面的勾取消,选择Local System account, 如下图:

转载于:https://www.cnblogs.com/watermarks/p/5141397.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值