0
votes

I am getting Error "[microsoft][ODBC SQL Server driver][DBMSLPCN]SSL Security error" while connecting throught SQLDriverConnect() using connection string "DRIVER=SQLServer;SERVER=localhost\XXXSQLEXPRESS;DATABASE=xxxDB;UID=xxxxxx;PWD=xxxx;Trusted_Connection=No";

It was working earlier before re-installing SQL Server 2014. But able connect using SQLCMD and SQL Server management studio.

Thanks for your kind help in advance

1

1 Answers

1
votes

You are using the legacy SQL Server ODBC driver, which is provided with Windows for backwards compatibility. Try using either the SQL Server Native Client or ODBC Driver 13.1 for SQL Server. Those support TLS 1.2.