: Use this for Java 11 and above (including Java 17, 21, and 25). How to Add the Driver to Your Project 1. Using Maven
Download and run the .exe or unzip the .zip file into a directory like %ProgramFiles%\ Microsoft SQL Server JDBC Driver . download - jdbc driver for sql server microsoft learn
The easiest way to manage the driver is through Maven Central . Add the following dependency to your pom.xml file: : Use this for Java 11 and above
: Use this if you are running on Java 8 . The easiest way to manage the driver is
The is a Type 4 driver that provides robust database connectivity for Java-based applications. It is available at no cost and allows access to SQL Server, Azure SQL Database, and Azure SQL Managed Instance from any Java-enabled platform. Latest Version and Downloads
The download package includes multiple JAR files tailored to specific Java Runtime Environments (JRE):