TLS Version Error using the Database Toolbox with ODBC Driver

12 views (last 30 days)
We are facing database connectivity issues in our project when using the Database Toolbox to connect to our Microsoft SQL Server. When testing changes locally on our developer machines before distributing, the MATLAB script is working perfectly fine. However when the script is executed on the machine that we use for production, we are receiving an error:
ODBC Driver Error: [Microsoft][ODBC SQL Server Driver][SQL Server]Reason: Login failed due to client TLS version being less than minimal TLS version allowed by the server.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 15 May 2023
When connecting to a database with an ODBC driver in MATLAB using the Database Toolbox, the supported TLS versions are determined by the ODBC driver. To resolve this error, ensure that the ODBC driver version that you are using with MATLAB supports the minimum TLS version required by the server database. The supported TLS versions of a specific ODBC driver can typically be found in the ODBC driver's documentation.

More Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!