-->
When you deploy an application that depends on the Microsoft JDBC Driver for SQL Server, you must redistribute the JDBC driver together with your application. Unlike Windows Data Access Components (Windows DAC), which is a component of the Windows operating system, the JDBC driver is considered to be a component of SQL Server.
There are two approaches to deploying the JDBC driver with your application. One is to include the JDBC driver files as part of your own custom installation package. The second approach involves using the JDBC installation package provided by Microsoft, which you can download from the Microsoft JDBC Driver for SQL Server Developer Center.
The following sections discuss how to use the JDBC installation package on Windows and UNIX operating systems.
Feb 27, 2018 Download the Microsoft JDBC Driver 6.0 for SQL Server, a Type 4 JDBC driver that provides database connectivity through the standard JDBC application program interfaces (APIs) available in Java Platform, Enterprise Editions. Linux, Unix, Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008 R2, Windows Server 2012, Windows. The DB2 Driver. Note: The BEA WebLogic Type 4 JDBC DB2 driver is available in the WebLogic Server 8.1 Service Pack 2 and Service Pack 3 releases. It is not available with the WebLogic Server 8.1 GA, Service Pack 1, and Service Pack 4 releases. Download the Microsoft JDBC Driver 6.0 for SQL Server, a Type 4 JDBC driver that provides database connectivity through the standard JDBC application program interfaces (APIs) available in Java Platform, Enterprise Editions.
Note
Ibm Db2 Driver
For information about deploying Java applications in general, see the Java website.
Deploying the JDBC driver on Windows systems
When you deploy the JDBC driver on Windows operating systems, you must use the executable zip file version of the installation package, which is typically named
sqljdbc_<version>_<language>.exe
.To run the executable zip file silently, you must use the
/auto
command-line option on the command line or in a batch file as in the following:sqljdbc_<version>_<language>.exe /auto
Note
When you use the
/auto
option it is not a truly silent installation, as a WinZip dialog box still appears on the user's screen. However, you will not need to interact with it and it closes as soon as the unzip operation is complete.Deploying the driver on UNIX systems
When you deploy the JDBC driver on UNIX operating systems, you must use the gzip file version of the installation package, which is typically named
sqljdbc_<version>_<language>.tar.gz
.Before you install the JDBC driver, make sure that both the gzip and tar utilities are installed on the user's system, and that the folders that contain the executables for both utilities are added to the PATH environment variable.
To unpack the zipped tar file, navigate to the directory where you want the driver unpacked and type the following command:
Db2 Iseries Odbc Driver
gzip -d sqljdbc_<version>_<language>.tar.gz
To unpack the tar file, move it to the directory where you want the driver installed and type the following command:
tar -xf sqljdbc_<version>_<language>.tar