provider: SSL Provider, error: 0 - 证书链是由不受信任的颁发机构颁发的
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - 证书链是由不受信任的颁发机构颁发的。)
解决方案
在登录时,更改选项的连接属性,解决方案、信任服务器证书选项都选择或者都不选择,不能只选一个
连接字符串设置:Encrypt=True;TrustServerCertificate=True;