
Microsoft JDBC Driver for SQL Server Versions and Downloads
The latest stable Microsoft JDBC Driver for SQL Server is 13.6.2, published on . Download the JAR for the Java version that runs your application, or use the com.microsoft.sqlserver:mssql-jdbc dependency.
Microsoft JDBC Driver for SQL Server download
Microsoft’s release archive was checked on . Microsoft download page
Choose the JDBC JAR for Java 8, Java 11, or a later runtime
Check java -version in the environment that runs the application. Recent driver releases publish jre8 for Java 8 and jre11 for Java 11 and supported newer Java versions. Check Microsoft’s Java requirements for the exact driver release, especially for older JARs with other suffixes.
The JDBC driver is a dependency of the Java application. Put the JAR on its classpath or declare the dependency in its build.
Maven dependency
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>13.6.2.jre11</version>
</dependency>Gradle dependency
implementation("com.microsoft.sqlserver:mssql-jdbc:13.6.2.jre11")Check the JDBC driver version loaded by the application
Use a test connection opened by the deployed application. getDriverVersion() reports the loaded driver. getDatabaseProductVersion() reports the connected server.
System.out.println(connection.getMetaData().getDriverVersion());If the driver version differs from the one in your build file, check mvn dependency:tree and look for older JARs on the deployed classpath or in the application server’s shared libraries.
JDBC driver upgrades and SQL Server TLS certificates
Starting with JDBC Driver 10.2, encrypt defaults to true. If an upgrade exposes a certificate error, check that the JVM trusts the issuing CA and that the connection hostname matches the certificate. A Windows trust store and the JVM’s trust store can contain different certificates.
With encrypt=true;trustServerCertificate=false, the driver verifies the server certificate. Test the connection from the deployed runtime with the same authentication mode it uses in production.
Previous Microsoft JDBC Driver versions and JARs
Preview release archive
Use the driver support matrix to check how long a release is supported. The Microsoft release notes include releases that predate the GitHub archive.
Microsoft GitHub releasesMicrosoft JDBC release notesJava requirementsDriver support matrixODBC driverOLE DB driverTLS certificate troubleshooting
