Ah, I missed the point that you want to use an ODBC datasource pointing to an SQL Server. Using ODBC in Java isn't possible any more because Oracle dropped the support in Java 8. You have to use the JDBC driver using the SQL Server's hostname and the database name. It will also be much faster than using the ODBC datasource.