Supported Java Versions – January 2012

Dear SQL Server developers and users:

Thank you for your ongoing support of the Microsoft JDBC Driver for SQL Server.

We have recently had some questions regarding which versions of Java are supported by the Microsoft JDBC Driver for SQL Server. We support Java 5.0 and Java 6.0 currently. We are looking forward to adding support for Java 7.0 in the future as well. Look for updates on this blog and our website.

In addition, there are known connection failure issues with Java 6 update 29, Java 6 update 30, and above. We are rolling out SQL Server patches for this issue, see this blog post for details.

There is also a known date issue with JRE 1.7, our 4.0 driver (production release) contains a fix for this issue. In addition, our 3.0 driver also corrects this issue via a hotfix

The Microsoft JDBC Driver does not yet support Java 7.0, if you wish to do some early non production testing of Java 7.0 with our driver, you may report Java bugs & issues to Java and Microsoft bugs & issues via our forums.

Thank you,
Shamitha Reddy
Program Manager Microsoft JDBC Driver for SQL Server

For technical support, please use our forums.


Comments (15)
  1. Guy Davis says:

    What, if anything, are you doing to fix the recent connection incompatibility problem between Java 6u29 and MS SQL Server 2008 r2?

  2. dpblogs says:

    @Guy Davis.

    Thanks for your question.  We are in touch with Oracle regarding the Java 6u29 issue and we are jointly looking at various options to address the connection issue.  We will post an update on this blog once we have completed the investigation.


    Shamitha Reddy

    Program Manager Microsoft JDBC Driver for SQL Server

  3. Hansen says:

    Guy Davis, many thanks for posting your comment. I spend many hours trying to solve this problem.

    Latest and greatest version of SQL Server and Java – and then there is nothing one can do to get it to work. I cannot believe this is not a seperate post on this blog.

    Microsoft: Going forward – exactly where can I find this sort of urgent information ?

  4. Björn says:

    Thank you Guy. We too spend most of the day looking for the problem.  So much time wasted. We switched to JTDS. Works just fine.

  5. László van den Hoek says:

    We are experiencing a similar issue with OpenJDK on RHEL 5.7. After upgrading to the latest 1:, the main thread of JBoss now hangs indefinitely during startup. As with Björn, JTDS does not have this issue.

    Here is a thread dump:

    "Thread-25" prio=10 tid=0x00002aaab4649800 nid=0x4117 runnable [0x0000000045d97000]

      java.lang.Thread.State: RUNNABLE

           at Method)




           – locked <0x00000000eb190fc8> (a






           – locked <0x00000000eb162cd8> (a java.lang.Object)







           – locked <0x00000000eb162cd8> (a java.lang.Object)









           at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(

           at org.jboss.resource.adapter.jdbc.xa.XAManagedConnectionFactory.createManagedConnection(

           at org.jboss.resource.connectionmanager.ManagedConnectionFactoryDeployment.createManagedConnection(


           at org.jboss.resource.connectionmanager.ManagedConnectionFactoryDeployment.getXAResources(

           at com.arjuna.ats.internal.jbossatx.jta.XAResourceRecoveryHelperWrapper.getXAResources(

           at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.resourceInitiatedRecoveryForRecoveryHelpers(

           – locked <0x00000000c4643710> (a java.util.LinkedList)

           at com.arjuna.ats.internal.jta.recovery.arjunacore.XARecoveryModule.periodicWorkSecondPass(

           at com.arjuna.ats.internal.arjuna.recovery.PeriodicRecovery.doWorkInternal(


  6. RaviRaj Mulasa says:

    @ Guy Davis

    Wasted lot of time in debugging the connection incompatibility problem, thanks for the time saving question.

    Hope Microsoft updates the following page with incompatibility issues.…/aa937724

    This will save time.

  7. wesclark says:

    We are not seeing problems on Java 6 update 30.  Can you validate that that version has a problem or not? If so, what is the problem.  We definitely cannot connect with 29.

  8. dpblogs says:

    Some customers may still experience issues with Java 6 update 30.  We will have an update soon for those customers.

  9. Tom says:

    The second link to the blog post is broken.  It has server-side include code in it:…/%22%3E%3Cspan%20style=&

  10. dpblogs says:


    Thanks for pointing out the broken link.  I have corrected the link and updated the blog with some new information.

  11. dpblogs says:

    A patch is available for SQL Server & Java 6 update 30.   See this blog for more details on SQL Server and Java 6 update 29 & update 30.…/patch-available-for-sql-server-and-java-6-update-30.aspx

  12. Your link to "A patch is available for SQL Server & Java 6 update 30" is broken!

  13. wesclark says:

    Link still broken.

  14. Since this link:…/patch-available-for-sql-server-and-java-6-update-30.aspx

    Is not valid, is there a link to this patch that works?

  15. Tony F. says:

    What about connecting from a linux platform using various authentication methods?

Comments are closed.

Skip to main content