错误描述
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - 证书链是由不受信任的颁发机构颁发的。)
解决方法
- [参考链接]https://learn.microsoft.com/zh-cn/troubleshoot/sql/database-engine/connect/certificate-chain-not-trusted?tabs=ole-db-driver-19
- 将 添加到 ;TrustServerCertificate=true; 连接字符串。 这将强制客户端在不验证的情况下信任证书。