Microsoft JDBC Driver Now Supports JDK7

Greetings SQL Server developers and users,

On December 12, 2014, we released Microsoft JDBC Driver 4.1 for SQL Server.  This driver now supports the Java Development Kit 7 (JDK7).

JDBC Driver Version

JRE Versions

JDBC API Version


1.5, 1.6, 1.7

3.0, 4.0

For further details, you can click here.

You can also download it from here.

We are working next on support for JDK8 and some exciting new features. Stay tuned for future announcements.

Luiz Santos (

Comments (7)

  1. Wes Clark says:

    Version 4.0 supported JRE 1.7, so what is this for?  I don't see any updates to the documentation (help folder).  Could you please shed a little light on what is different between 4.0 and 4.1?

  2. jezter says:

    Please, make it available via Maven Central.

  3. Yuri Budilov says:


    Java 8 (1.8) is now over 12 months old and still unsupported by Microsoft JDBC.

    Please share the plans to support JDK 8 and JRE 8 for Microsoft JDBC driver for SQL Server (versions 2008 – 2014).

    Thank you.

  4. Walter says:

    Thank jou! Should this driver be preffered over the jTDS driver? Why?

  5. Miguel Alho says:

    Any support in this version for connections to LocalDb?

    My use case for this is to be able to use a tool like FlyWay to update LocalDB databases (attach the empty db and run the migration scripts at test suit setup) used in integration tests. We currently have the database pre-built in terms of schema, but would be nice if we could use our migration scripts to update the LocalDB test database to the most recent version. Any alternative ideas are also welcome.

  6. John Ulric says:

    Any news on official Java 8 support? Java 7 has just had its final public update and will no longer be supported by Oracle except with premier support contracts.…/eol-135779.html

    Does the current 4.1 driver run with Java 8 even if not officially supported?

  7. Pawel1986 says:

    What ever it supports or not – it doesn't seem like it supports SQL Server and Java on Glassfish 🙂

    Trying to integrate SQL Server with Java application running on Glassfish turned out to be a complete failure. It is working great with MySQL but trying to connect it with JDBC (sql4jdbc.jar) to SQL Server is literally a nightmare!

    Here is very detail description of the problem:…/invalidkeyspecexception-on-deploying-ear-file-containing-entitybeans-and-using

    … But in a short, all I get from this "Integration exercise" is this entry in a Glassfish log file:

    Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Server key". ClientConnectionId:a3f21831-fbc0-491c-9691-2b28500d7d2b

    Error Code: 0. Please see server.log for more details.

    … Apparently caused by: Caused by: Unknown KeySpec type:

    No idea what to do.

Skip to main content