A legacy piece of software using the provider "sqloledb.1" via the OleDbConnection Class (System.Data.OleDb.dll) is still working on Windows Server 2019 with TLS1.2. Whereas on Server 2016 or 2012 R2 with TSL1.2 it is not?
Windows Server 2016 gets the following error, which is expected as it is using the sqloledb which doesn't support TLS1.2. This is well known as seen here.
[DBNETLIB][ConnectionOpen (SECCreateCredentials()).]SSL Security error.
Windows Server 2019 works and I do not know why. Is it struggling to find the sqloledb and defaulting to the new driver (MSOLEDBSQL) that supports TLS1.2?
All servers have the same version of the Microsoft OLE DB Driver for SQL Server installed, 18.5.
Tried different versions of SQL server, 2017 and 2019.
Update
sqloledb.dll properties showing the version information
Server 2019
Server 2016
sqloledb
is part of Windows, and it was recently updated to support TLS 1.2. See KB4580390:So as of "Windows 10, version 1809, Windows Server version 1809" (OS Build 17763.1554) this should work.
Testing locally on Windows 10 20H2 running
Where protocol encryption is forced on the server:
And capturing this XEvent:
Captured this debug message: