【发布时间】:2021-12-26 17:47:40
【问题描述】:
在安装过程中尝试连接到数据库时,我在 Windows 注册表中禁用除 TLS 1.2 之外的所有内容时收到此错误消息
*Error 27502. Could not connect to Microsoft SQL Server '(local)'. [DBNETLIB][ConnectionOpen (SECCreateCredentials()).]SSL Security error. (18)*. I've tried it on SQL Server 2012 and 2016.
我正在使用 SQL Server Standard Edition 或更高版本,并在 2012、2014 和 2016 版本中试用。
到目前为止我尝试过的主要事情:
升级到 InstallShield 2019 R3:https://docs.revenera.com/installshield26helplib/helplibrary/NewFeatureIS2019.htm
安装SQL Server驱动MSOLEDBSQL:https://docs.microsoft.com/en-us/sql/connect/oledb/download-oledb-driver-for-sql-server?view=sql-server-ver15
【问题讨论】:
-
SQL Server 默认使用自签名 X.509 证书。您是否尝试将
TrustServerCertificate=false;添加到您的连接字符串? -
您使用 SQL Sever 还是 SQL Server Express?
-
@DoNhuVy 是 Sql Server,不是快递
-
@AlwaysLearning,感谢您的反馈。我不知道连接字符串的设置,到目前为止它不在连接中。然而 false 是默认值,所以如果我把属性放在那里应该不会有什么不同。 docs.microsoft.com/en-us/sql/relational-databases/native-client/…
标签: sql-server ssl tls1.2 installshield