错误信息:
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: Shared Memory Provider, error: 0 - 管道的另一端上无任何进程。) (Microsoft SQL Server,错误: 233)
原因:
找到日志文件,我的目录是:
C:\Program Files\Microsoft SQL Server\MSSQL16.MSSQLSERVER\MSSQL\Log
点开错误日志:
发现报错信息
原来是我开启了服务器连接强制加密。
解决办法:
打开
1、Sql Server Configuration Manager找到MSSLSERVER的协议
2、点击属性-取消强制加密
问题解决。