How to fix "error:1C80006B:Provider routines::wrong final block length" in SQL Server ODBC client (Linux)

Tim Coleman 0 Reputation points
2024-10-02T22:42:20.45+00:00

I'm trying to write C++ ODBC driver code to execute SQL statements from a Linux server.

I keep running into errors such as:

DIAG [08S01] [Microsoft][ODBC Driver 18 for SQL Server]SSL Provider: [error:1C80006B:Provider routines::wrong final block length] DIAG [08S01] [Microsoft][ODBC Driver 18 for SQL Server]Communication link failure

This only seems to happen with encrypted connections.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,771 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,717 questions
{count} votes

Your answer

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