TLS Version Error using the Database Toolbox with ODBC Driver
12 views (last 30 days)
Show older comments
MathWorks Support Team
on 15 May 2023
Answered: MathWorks Support Team
on 16 May 2023
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
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.
0 Comments
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!