SQL Server JDBC Error on Java 8: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption

前端 未结 8 2252
鱼传尺愫
鱼传尺愫 2020-11-27 16:39

I am getting the following error when connecting to a SQL Server database using version the Microsoft JDBC Driver:

com.microsoft.sqlserver.jdbc.SQLSer

8条回答
  •  Happy的楠姐
    2020-11-27 17:10

    Before you upgrade SQL JDBC Driver, check the compatibility first:

    • Sqljdbc.jar requires a JRE of 5 and supports the JDBC 3.0 API
    • Sqljdbc4.jar requires a JRE of 6 and supports the JDBC 4.0 API
    • Sqljdbc41.jar requires a JRE of 7 and supports the JDBC 4.1 API
    • Sqljdbc42.jar requires a JRE of 8 and supports the JDBC 4.2 API

    Source: https://www.microsoft.com/en-us/download/details.aspx?id=11774

提交回复
热议问题