Microsoft JDBC Driver for SQL Server

com.microsoft.sqlserver : mssql-jdbc

Microsoft JDBC Driver for SQL Server.

[Website] ·
384 usages
· 848 stars

Add dependency in Maven / Gradle

<dependency>
    <groupId>com.microsoft.sqlserver</groupId>
    <artifactId>mssql-jdbc</artifactId>
    <version>10.1.0.jre17-preview</version>
</dependency>

How to add dependency in a project

  1. Add dependency to a Maven project
  2. Add dependency to a Gradle project
  3. Add dependency to a SBT Scala project
  4. Add dependency to a Grape project

1. Add dependency to a Maven project

Maven: Add the com.microsoft.sqlserver:mssql-jdbc library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>com.microsoft.sqlserver</groupId>
  <artifactId>mssql-jdbc</artifactId>
  <version>10.1.0.jre17-preview</version>
</dependency>
</dependencies>

To install com.microsoft.sqlserver:mssql-jdbc library use the following command:

mvn install

2. Add dependency to a Gradle project

Gradle Groovy DSL: Add the com.microsoft.sqlserver:mssql-jdbc library to the dependencies section of your build.gradle file:

dependencies {
implementation 'com.microsoft.sqlserver:mssql-jdbc:10.1.0.jre17-preview'
}

Gradle Kotlin DSL: Add the com.microsoft.sqlserver:mssql-jdbc library to the dependencies section of your build.gradle.kts file:

dependencies {
implementation("com.microsoft.sqlserver:mssql-jdbc:10.1.0.jre17-preview")
}

3. Add dependency to a SBT Scala project

Scala: Add the com.microsoft.sqlserver:mssql-jdbc library to your build.sbt file:

libraryDependencies += "com.microsoft.sqlserver" % "mssql-jdbc" % "10.1.0.jre17-preview"

4. Add dependency to a Grape project

Grape: Add an annotation com.microsoft.sqlserver:mssql-jdbc library to your groovy script file:

@Grapes(
    @Grab('com.microsoft.sqlserver:mssql-jdbc:10.1.0.jre17-preview')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (2)

Group / Artifact Usage
org.osgi » org.osgi.core 3,136
org.osgi » org.osgi.compendium 1,592

Test Dependencies (15)