OCDB Driver 18 for SQL Server connection from Windows Server 2025 client to SQL Server 2019 connection error

MikeDBA 0 Reputation points
2026-09-08T16:07:41.33+00:00

We have created some new servers as part of a rolling upgrade to Windows Server 2025 Datacenter. One of the servers runs an application that connects to SQL Server using the ODBC Driver 18 for SQL Server. The connection attempt fails with "the login is from an untrusted domain and cannot be used with Integrated authentication". The server is in fact a member of the same domain as the SQL Server instance. Further testing reveals this is an issue on all Windows Server 2025 computers. We spun up another server using Windows Server 2022 and the connection succeeded. SQL Server has a certificate issued from our corporate CA (we use a cert on all servers) and valid SPNs. On the SQL Server, we capture TSQL errors in an extended event. The error there is 17806 SSPI handshake failed with error code 0x8009030c state 14, severity 20.

We are at a loss as to the steps needed to resolve this issue. Any advice?

Windows for business | Windows Server | Devices and deployment | Set up, install, or upgrade
0 comments No comments

1 answer

Sort by: Most helpful
  1. James Gamble 0 Reputation points
    2026-09-08T17:19:48.2133333+00:00

    Hola MikeDBA,

    Based on what you’ve tested, I’d focus on Windows Server 2025 authentication changes rather than the SQL certificate or ODBC encryption settings.

    Since the same application and SQL Server work on Server 2022 but fail on Server 2025 with SQL error 17806 and SSPI error 0x8009030c, that points to Windows Integrated Authentication failing during the SSPI/Kerberos negotiation, not to a TLS trust problem.

    Two Server 2025 changes are relevant here: Credential Guard is enabled by default on eligible domain-joined Server 2025 systems, and Microsoft has also tightened Kerberos encryption handling, including RC4 restrictions.

    I would suspect that the SQL Server service account or SPN is still relying on an older Kerberos encryption path, typically RC4, and the Server 2025 clients are no longer successfully negotiating it the same way Server 2022 does.

    I’d verify the SQL service account supports AES: Get-ADUser sqlserviceaccount -Properties msDS-SupportedEncryptionTypes | Select-Object SamAccountName,msDS-SupportedEncryptionTypes

    If SQL runs under a gMSA, use Get-ADServiceAccount instead.

    I’d also force a service-ticket request from one of the failing Server 2025 systems:

    klist purge

    klist get MSSQLSvc/sqlserver.domain.example:1433

    If that fails, it would confirm that the problem lies in Kerberos ticket issuance rather than in SQL Server itself.

    Another useful check is a successful Server 2022 connection: SELECT auth_scheme FROM sys.dm_exec_connections WHERE session_id = @@SPID;

    If that comes back as NTLM rather than KERBEROS, that would explain why 2022 appears healthy even though the Kerberos path is actually broken.

    I don’t think the corporate CA certificate is the primary issue here. ODBC Driver 18 enforces encryption by default, but a certificate issue would normally surface as an SSL Provider or certificate validation error, not SSPI 0x8009030c.

    Thanks,

    James

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.