Unable to connect to server '(local)'; SQLServerAgent cannot start

本文介绍了当尝试使用SQL Server Management Studio连接到SQL Server 2005时遇到的连接失败错误,并详细记录了排查过程及最终解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[Action]

Trying to connect to the SQL server using SQL server management studio.

SQL server 2005 9.00.4035 32 bit

Windows Server 2003 Standard Edition 64bit

[Result]

The SQL server connection fails with the below error.

A connection was successfully established with the server, but then an error
occurred during the pre-login handshake. (provider: TCP Provider, error: 0 -
An existing connection was forcibly closed by the remote host.) (Microsoft
SQL Server, Error: 10054)


[Event Viewer]

 SQLServerAgent could not be started (reason: Unable to connect to server '(local)'; SQLServerAgent

 

[Resolution]

  We are trying to connect to the SQL Server 2005 using the IP address and
the port number.

  Checked the protocols. All the protocols are fine and SQL server is
listening on the specified protocols.

 Checked if Force Encryption is on. It is off.

 We could see 4 certificates listed in the Configuration manager.

 Performed the UDL test. Obtained the error that SSL configuration failed.


 Obtained the thumbprints of all the certificates.

 Opened mmc.exe, added the certificates snap in for computer account and
local computer store.

 Deleted the four certificates in the personal store.

 Now when we tried to restart the SQL server. It failed with the below
errors in the error log.

 Error: 26014, Severity: 16, State: 1.

 Unable to load user-specified certificate. The server will not accept a
connection. You should verify that the certificate is correctly installed.
See "Configuring Certificate for Use by SSL" in Books Online.

 Error: 17182, Severity: 16, State: 1.

 Worked
After deleting certificates in personal stores. I am able to login to sql server.

转载于:https://www.cnblogs.com/ojo/archive/2010/07/28/1786674.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值