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
NES for Microsoft JDBC Driver for SQL Server 10.2.x requires Java 8+.
Configure Registry
Create or update your registry configuration:
<settings>
<servers>
<server>
<id>herodevs-nes-registry</id>
<username>any_text_here_not_used</username>
<password>YOUR_NES_ACCESS_TOKEN</password>
</server>
</servers>
</settings>
See the guides for Sonatype Nexus or JFrog Artifactory for setup to the HeroDevs NES registry.
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.
Look up a specific artifact version in the "NES Maven Artifacts: Paid Versions" table.
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.
<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:
<!-- 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.comassets.nes.herodevs.com
This will ensure that your network/firewall allows connection to our registry.
Run your build tool:
mvn clean package
Verification
To verify your installation, check that:
- Dependencies are downloaded successfully
- No version conflicts are reported in your build
- Your application starts without errors
Manual Downloads
The direct download URLs for NES for Microsoft JDBC Driver for SQL Server packages follow this format:
| Portion | Value |
|---|---|
| base_url | https://registry.nes.herodevs.com/maven/com/microsoft/sqlserver/ |
| package_name | mssql-jdbc |
| version | 10.2.4-mssql-jdbc-10.2.5 |
| filename | package_name + version + extension |