1 Reply Latest reply on Oct 16, 2013 2:53 PM by Jim Smith

    SQL Developer 3.2.2 - Connecting to SQL Azure using 3rd party JDBC (JTDS)


      Hi All


      I'll probably be shot down for asking this as it's not Oracle specific...but here goes....


      My organisation is trialling SQL Azure as an alternative to Oracle (yes I know! ) and our developers (who are all PL/SQL/Oracle/Java/Apex devs and have to start from scratch with C#/.net etc) would like to be able to connect to the SQL Azure database using Oracle SQLDeveloper seeing as it's such an excellent tool - and much easier to use compared with SSMS.   At first, I laughed in their faces and said that there's no way this is gonna happen but after a bit of research I've realised that some nice bloke knocked up a 3rd party driver for just this sort of thing - it's called JTDS and is linked from Oracle's own page here:




      I've unzipped the jtds-1.2.2-dist, moved the jtds-1.2.2.jar file into C:\Program Files\Oracle\sqldeveloper\jlib  and also moved ntlmauth.dll into C:\Program Files\Oracle\sqldeveloper\jdk\jre\bin.


      When I test the connection to the database I get the following error:


      Status : Failure -Test failed: I/O Error: DB server closed connection.



      My SQL developer connection xml for this entry is as follows:


      <?xml version = '1.0' encoding = 'UTF-8'?>

      <References xmlns="http://xmlns.oracle.com/adf/jndi">

         <Reference name="SQLAzure" className="oracle.jdeveloper.db.adapter.DatabaseProvider" xmlns="">

            <Factory className="oracle.jdeveloper.db.adapter.DatabaseProviderFactory"/>


               <StringRefAddr addrType="port">



               <StringRefAddr addrType="user">



               <StringRefAddr addrType="subtype">



               <StringRefAddr addrType="RaptorConnectionType">

                  <Contents>Microsoft SQL Server</Contents>


               <StringRefAddr addrType="ConnName">



               <StringRefAddr addrType="hostname">



               <StringRefAddr addrType="customUrl">



               <StringRefAddr addrType="password">



               <StringRefAddr addrType="SavePassword">



               <StringRefAddr addrType="driver">







      I've read some useful info here:


      and tried the steps listed

      and also here


      modifying the jdbc string to include ssl=require

      but nothing seems to help - I'm still getting the DB server slosed connection.



      Any ideas?


        • 1. Re: SQL Developer 3.2.2 - Connecting to SQL Azure using 3rd party JDBC (JTDS)
          Jim Smith

          I can't help with the connection issue except to say that SQL Developer will only work with jtds 1.2. If asuze mssql requires 1.4 you are probably out of luck.


          However, I think you are at risk of heading down a dead-end.  SQL Developer's functionality against SQL Server is intended to support migration and as such is limited compared to a native MSSQL tool.    Your developers will never adapt to mssql if they have to use a limited tool.   SSMS will let you do everything necesssary on MSSQL databases.