Download Microsoft JDBC Driver for SQL Server

The Microsoft JDBC Driver for SQL Server is a Type 4 JDBC driver that provides database connectivity through the standard JDBC application program interfaces (APIs) available on the Java platform. The driver downloads are available to all users at no extra charge. They provide access to SQL Server from any Java application, application server, or Java-enabled applet.

Download

Version 12.8 is the latest general availability (GA) version. It supports Java 8, 11, 17, 21, and 22. If you need to use an older Java runtime, see the Java and JDBC specification support matrix to see if there's a supported driver version you can use. We're continually improving Java connectivity support. As such we highly recommend that you work with the latest version of Microsoft JDBC driver.

Download Microsoft JDBC Driver 12.8 for SQL Server (zip)
Download Microsoft JDBC Driver 12.8 for SQL Server (tar.gz)

Version information

  • Release number: 12.8.1
  • Released: August 22, 2024

When you download the driver, there are multiple JAR files. The JAR file with jre8 supports Java 8 and the JAR file with jre11 supports Java 11 and up.

Note

If you are accessing this page from a non-English language version, and want to see the most up-to-date content, please select Read in English at the top of this page. You can download different languages from the US-English version site by selecting available languages.

Available languages

This release of Microsoft JDBC Driver for SQL Server is available in the following languages:

Microsoft JDBC Driver 12.8.1 for SQL Server (zip): Chinese (Simplified) | Chinese (Traditional) | English (United States) | French | German | Italian | Japanese | Korean | Portuguese (Brazil) | Russian | Spanish

Microsoft JDBC Driver 12.8.1 for SQL Server (tar.gz): Chinese (Simplified) | Chinese (Traditional) | English (United States) | French | German | Italian | Japanese | Korean | Portuguese (Brazil) | Russian | Spanish

Release notes

For details about this release, see the release notes and system requirements.

Previous releases

To download previous releases, see previous Microsoft JDBC Driver for SQL Server releases.

Using the JDBC driver with Maven Central

The JDBC driver can be added to a Maven project by adding it as a dependency in the POM.xml file with the following code:

<dependency>
    <groupId>com.microsoft.sqlserver</groupId>
    <artifactId>mssql-jdbc</artifactId>
    <version>12.8.1.jre11</version>
</dependency>

Unsupported drivers

Unsupported driver versions aren't available for download here. We're continually improving the Java connectivity support. As such we highly recommend that you work with the latest version of Microsoft JDBC driver.

Next steps

For more information about the Microsoft JDBC Driver for SQL Server, see Overview of the JDBC driver and the JDBC driver GitHub repository.