Visit NES for Microsoft JDBC Driver for SQL Server Home Page

NES for Microsoft JDBC Driver for SQL Server 10.2.x Setup

Installation and configuration guide for NES for Microsoft JDBC Driver for SQL Server 10.2.x

Setup Instructions

Configure Registry

Create or update your registry configuration:

Maven (~/.m2/settings.xml)
Gradle (~/.gradle/gradle.properties)
<settings>
  <servers>
    <server>
      <id>herodevs-nes-registry</id>
      <username>any_text_here_not_used</username>
      <password>YOUR_NES_ACCESS_TOKEN</password>
    </server>
  </servers>
</settings>

Update Build Configuration

Add the NES repository and dependencies to your build configuration. NES for Microsoft JDBC Driver for SQL Server keeps the upstream com.microsoft.sqlserver Maven coordinates, so only the version changes.

Upstream publishes 10.2.4 as separate .jre8, .jre11, and .jre17 builds. NES publishes a single build compiled for Java 8, which also runs on later JDKs, so the NES version has no JRE suffix. Replace a version such as 10.2.4.jre11 with the NES version below. The Java 8 build implements JDBC 4.2: the JDBC 4.3 additions in upstream's .jre11 and .jre17 builds, such as Connection.beginRequest(), are not available.

In a Spring Boot application that uses Spring Boot dependency management, set the mssql-jdbc.version property to apply the NES version to every artifact that Spring Boot manages. See Spring Boot Dependency Management for details.

Maven (pom.xml)
Gradle (Groovy)
Gradle (Kotlin)
<properties>
  <mssql-jdbc.version>10.2.4-mssql-jdbc-10.2.5</mssql-jdbc.version>
</properties>

<!-- Add NES repository -->
<repositories>
  <repository>
    <id>herodevs-nes-registry</id>
    <url>https://registry.nes.herodevs.com/maven</url>
  </repository>
</repositories>

Otherwise, add the NES dependencies directly to your build configuration:

Maven (pom.xml)
Gradle
<!-- Update the Microsoft JDBC Driver for SQL Server dependency version -->
<dependencies>
  <dependency>
    <groupId>com.microsoft.sqlserver</groupId>
    <artifactId>mssql-jdbc</artifactId>
    <version>10.2.4-mssql-jdbc-10.2.5</version><!-- Updated Version -->
  </dependency>
</dependencies>

<!-- Add NES repository -->
<repositories>
  <repository>
    <id>herodevs-nes-registry</id>
    <url>https://registry.nes.herodevs.com/maven</url>
  </repository>
</repositories>

Build

In order to remove potential obstacles before building your project, make sure the following domains are whitelisted by your firewall/networking team:

  • registry.nes.herodevs.com
  • assets.nes.herodevs.com

This will ensure that your network/firewall allows connection to our registry.

Run your build tool:

Maven
Gradle
mvn clean package

Verification

To verify your installation, check that:

  1. Dependencies are downloaded successfully
  2. No version conflicts are reported in your build
  3. Your application starts without errors

Manual Downloads

The direct download URLs for NES for Microsoft JDBC Driver for SQL Server packages follow this format:

PortionValue
base_urlhttps://registry.nes.herodevs.com/maven/com/microsoft/sqlserver/
package_namemssql-jdbc
version10.2.4-mssql-jdbc-10.2.5
filenamepackage_name + version + extension

Example Link

https://registry.nes.herodevs.com/maven/com/microsoft/sqlserver/mssql-jdbc/10.2.4-mssql-jdbc-10.2.5/mssql-jdbc-10.2.4-mssql-jdbc-10.2.5.jar