JDBC Driver 10.2 for SQL Server Released

Published Feb 01 2022 11:11 AM 3,068 Views
Senior Member

Version 10.2 of the Microsoft JDBC Driver for SQL Server has been released. Version 10.2.0 brings several added features, changes, and fixed issues over the previous production release.

 

Added

  • Java 17 support 1676
  • Idle Connection Resiliency Feature 1669 (read more)
  • Support for multi user scenarios for Always Encrypted key store providers 1614 (read more)
  • Added logging when deriving realm 1672
  • Added check for closed statement to registerColumnEncryptionKeyStoreProvidersOnStatement 1644
  • Added 42108 and 42109 to transient error list 1643
  • Retry for intermittent Java NativeSeedGenerator 1705
  • Support for datetimeoffset with sql_variant 1673
  • Canonical host name resolution when realm is provided in connection string 1730

Changed

  • BREAKING CHANGE - Default Encrypt to true 1697
  • BREAKING CHANGE - Changed certificate validation behavior to validate when encryption is negotiated from either the client or the server side, not just the client side 1731
  • Deprecated AADSecurePrincipalId/AADSecurePrincipalSecret 1693
  • Updated enclave provider to use a non-blocking random method 1734
  • Updated Azure library dependency versions to address vulnerability issues 1733
  • Updated Bouncy Castle dependency version 1735

Fixed

  • Fix for Azure AD Interactive authentication timeout 1696
  • Fix for Bulkcopy multi byte characters in char/varchar columns 1671
  • Fixed an issue where Statement.closeOnCompletion() would cause a Null Pointer Exception 1639
  • Fixed conversion of LocalDateTime and LocalTime to String in Bulk Copy 1640
  • Fixed TDSParser stuck on TDS_COLMETADATA issue, which could result in a hang for certain queries [#1662] (#1662)

 

Breaking Changes

 

Encrypt = true, by default

There a couple breaking changes in 10.2 over previous releases that may affect a lot of users. Similar to the HTTP to HTTPS default changes made in web browsers a few years back (and the security reasons for them), we are changing the default value of the `Encrypt` connection option from `false` to `true`. With the increased emphasis on secure-by-default, the growing use of cloud databases, and the need to ensure connections are secure, it's time for this backwards-compatibility-breaking change. We realize this will cause some disruption, but letting clients try to connect without encryption by default leaves them open to attack from malicious actors.

 

We also changed the behavior of TrustServerCertificate to not be tied to the Encrypt setting. Previously, if Encrypt was set to false, certificates wouldn't be validated regardless of what TrustServerCertificate was set to. This allowed servers using self-signed certificates and Force Protocol Encryption to encrypt their client connections without requiring clients to change their default settings.

 

The action item if you are affected by the Encrypt change is to either (in order of recommendation):

  • Install a trusted certificate on your server.
  • Change your client's Encrypt connection string setting (or data source property) to false.

If you are using a self-signed certificate and the Force Encryption setting on the server to ensure clients connect with encryption, you will need to do one of the following (in order of recommendation):

  • Change to a certificate that is trusted as part of the client's trust chain.
  • Add the self-signed certificate as a trusted certificate on the client.
  • Change your client's TrustServerCertificate connection string setting (or data source property) to true.

If you maintain an application that uses the Microsoft JDBC Driver for SQL Server and you don't expose the Encrypt and TrustServerCertificate settings to your users, it's recommended that you make application changes to allow users to opt-in to non-encrypted connections or connections that use an untrusted certificate. It's also recommended that you expose the HostNameInCertificate setting. This related setting allows users to specify a known hostname defined in a certificate that doesn't match the hostname they need to use to connect to the server.

 

Getting the latest release

The latest bits are available to download from Microsoft, from the GitHub repository, and via Maven Central.

Add the JDBC 10.2 RTW driver to your Maven project by adding the following code to your POM file to include it as a dependency in your project (choose .jre8, .jre11, or .jre17 for your required Java version).

 

 

 

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

 

 

 

Help us improve the JDBC Driver by taking our survey, filing issues on GitHub or contributing to the project.


Please also check out our tutorials to get started with developing apps in your programming language of choice and SQL Server.


David Engel

%3CLINGO-SUB%20id%3D%22lingo-sub-3100754%22%20slang%3D%22en-US%22%3EJDBC%20Driver%2010.2%20for%20SQL%20Server%20Released%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3100754%22%20slang%3D%22en-US%22%3E%3CP%3EVersion%2010.2%20of%20the%20Microsoft%20JDBC%20Driver%20for%20SQL%20Server%20has%20been%20released.%20Version%2010.2.0%20brings%20several%20added%20features%2C%20changes%2C%20and%20fixed%20issues%20over%20the%20previous%20production%20release.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EAdded%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EJava%2017%20support%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1676%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1676%2Fhovercard%22%3E1676%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EIdle%20Connection%20Resiliency%20Feature%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1669%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E1669%3C%2FA%3E%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fsql%2Fconnect%2Fjdbc%2Fconnection-resiliency%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eread%20more%3C%2FA%3E)%3C%2FLI%3E%0A%3CLI%3ESupport%20for%20multi%20user%20scenarios%20for%20Always%20Encrypted%20key%20store%20providers%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1614%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E1614%3C%2FA%3E%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fsql%2Fconnect%2Fjdbc%2Fusing-always-encrypted-with-the-jdbc-driver%23register-a-custom-column-master-key-store-provider%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Eread%20more%3C%2FA%3E)%3C%2FLI%3E%0A%3CLI%3EAdded%20logging%20when%20deriving%20realm%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1672%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1672%2Fhovercard%22%3E1672%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EAdded%20check%20for%20closed%20statement%20to%20registerColumnEncryptionKeyStoreProvidersOnStatement%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1644%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1644%2Fhovercard%22%3E1644%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EAdded%2042108%20and%2042109%20to%20transient%20error%20list%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1643%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1643%2Fhovercard%22%3E1643%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3ERetry%20for%20intermittent%20Java%20NativeSeedGenerator%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1705%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1705%2Fhovercard%22%3E1705%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3ESupport%20for%20datetimeoffset%20with%20sql_variant%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1673%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1673%2Fhovercard%22%3E1673%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3ECanonical%20host%20name%20resolution%20when%20realm%20is%20provided%20in%20connection%20string%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1730%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1730%2Fhovercard%22%3E1730%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3EChanged%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EBREAKING%20CHANGE%20-%3C%2FSTRONG%3E%20Default%20Encrypt%20to%20true%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1697%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1697%2Fhovercard%22%3E1697%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EBREAKING%20CHANGE%20-%26nbsp%3B%3C%2FSTRONG%3EChanged%20certificate%20validation%20behavior%20to%20validate%20when%20encryption%20is%20negotiated%20from%20either%20the%20client%20or%20the%20server%20side%2C%20not%20just%20the%20client%20side%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1731%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1731%2Fhovercard%22%3E1731%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EDeprecated%20AADSecurePrincipalId%2FAADSecurePrincipalSecret%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1693%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1693%2Fhovercard%22%3E1693%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EUpdated%20enclave%20provider%20to%20use%20a%20non-blocking%20random%20method%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1734%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1734%2Fhovercard%22%3E1734%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EUpdated%20Azure%20library%20dependency%20versions%20to%20address%20vulnerability%20issues%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1733%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1733%2Fhovercard%22%3E1733%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EUpdated%20Bouncy%20Castle%20dependency%20version%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1735%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1735%2Fhovercard%22%3E1735%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3EFixed%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EFix%20for%20Azure%20AD%20Interactive%20authentication%20timeout%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1696%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1696%2Fhovercard%22%3E1696%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EFix%20for%20Bulkcopy%20multi%20byte%20characters%20in%20char%2Fvarchar%20columns%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1671%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1671%2Fhovercard%22%3E1671%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EFixed%20an%20issue%20where%20Statement.closeOnCompletion()%20would%20cause%20a%20Null%20Pointer%20Exception%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1639%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1639%2Fhovercard%22%3E1639%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EFixed%20conversion%20of%20LocalDateTime%20and%20LocalTime%20to%20String%20in%20Bulk%20Copy%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1640%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1640%2Fhovercard%22%3E1640%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3EFixed%20TDSParser%20stuck%20on%20TDS_COLMETADATA%20issue%2C%20which%20could%20result%20in%20a%20hang%20for%20certain%20queries%20%5B%3CA%20class%3D%22issue-link%20js-issue-link%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1662%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-error-text%3D%22Failed%20to%20load%20title%22%20data-id%3D%221009561035%22%20data-permission-text%3D%22Title%20is%20private%22%20data-url%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fissues%2F1662%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1662%2Fhovercard%22%3E%231662%3C%2FA%3E%5D%20(%3CA%20class%3D%22issue-link%20js-issue-link%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1662%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%20data-error-text%3D%22Failed%20to%20load%20title%22%20data-id%3D%221009561035%22%20data-permission-text%3D%22Title%20is%20private%22%20data-url%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fmssql-jdbc%2Fissues%2F1662%22%20data-hovercard-type%3D%22pull_request%22%20data-hovercard-url%3D%22%2Fmicrosoft%2Fmssql-jdbc%2Fpull%2F1662%2Fhovercard%22%3E%231662%3C%2FA%3E)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22toc-hId-358547864%22%20id%3D%22toc-hId-358548883%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--2099903404%22%20id%3D%22toc-hId--1448906599%22%20id%3D%22toc-hId--1448905580%22%3EBreaking%20Changes%3C%2FH2%3E%0A%3CH3%20id%3D%22toc-hId--758345125%22%20id%3D%22toc-hId--758344106%22%3E%26nbsp%3B%3C%2FH3%3E%0A%3CH3%20id%3D%22toc-hId-1078170903%22%20id%3D%22toc-hId-1729167708%22%20id%3D%22toc-hId-1729168727%22%3EEncrypt%20%3D%20true%2C%20by%20default%3C%2FH3%3E%0A%3CP%3EThere%20a%20couple%20breaking%20changes%20in%2010.2%20over%20previous%20releases%20that%20may%20affect%20a%20lot%20of%20users.%20Similar%20to%20the%20HTTP%20to%20HTTPS%20default%20changes%20made%20in%20web%20browsers%20a%20few%20years%20back%20(and%20the%20security%20reasons%20for%20them)%2C%20we%20are%20changing%20the%20default%20value%20of%20the%20%60Encrypt%60%20connection%20option%20from%20%60false%60%20to%20%60true%60.%26nbsp%3BWith%20the%20increased%20emphasis%20on%20secure-by-default%2C%20the%20growing%20use%20of%20cloud%20databases%2C%20and%20the%20need%20to%20ensure%20connections%20are%20secure%2C%20it's%20time%20for%20this%20backwards-compatibility-breaking%20change.%20We%20realize%20this%20will%20cause%20some%20disruption%2C%20but%20letting%20clients%20try%20to%20connect%20without%20encryption%20by%20default%20leaves%20them%20open%20to%20attack%20from%20malicious%20actors.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWe%20also%20changed%20the%20behavior%20of%20TrustServerCertificate%20to%20not%20be%20tied%20to%20the%20Encrypt%20setting.%20Previously%2C%20if%20Encrypt%20was%20set%20to%20false%2C%20certificates%20wouldn't%20be%20validated%20regardless%20of%20what%20TrustServerCertificate%20was%20set%20to.%20This%20allowed%20servers%20using%20self-signed%20certificates%20and%20Force%20Protocol%20Encryption%20to%20encrypt%20their%20client%20connections%20without%20requiring%20clients%20to%20change%20their%20default%20settings.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20action%20item%20if%20you%20are%20affected%20by%20the%20Encrypt%20change%20is%20to%20either%20(in%20order%20of%20recommendation)%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EInstall%20a%20trusted%20certificate%20on%20your%20server.%3C%2FLI%3E%0A%3CLI%3EChange%20your%20client's%20Encrypt%20connection%20string%20setting%20(or%20data%20source%20property)%20to%20false.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EIf%20you%20are%20using%20a%20self-signed%20certificate%20and%20the%20Force%20Protocol%20Encryption%20setting%20on%20the%20server%20to%20ensure%20clients%20connect%20with%20encryption%2C%20you%20will%20need%20to%20do%20one%20of%20the%20following%20(in%20order%20of%20recommendation)%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EChange%20to%20a%20certificate%20that%20is%20trusted%20as%20part%20of%20the%20client's%20trust%20chain.%3C%2FLI%3E%0A%3CLI%3EAdd%20the%20self-signed%20certificate%20as%20a%20trusted%20certificate%20on%20the%20client.%3C%2FLI%3E%0A%3CLI%3EChange%20your%20client's%20TrustServerCertificate%20connection%20string%20setting%20(or%20data%20source%20property)%20to%20true.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EIf%20you%20maintain%20an%20application%20that%20uses%20the%20Microsoft%20JDBC%20Driver%20for%20SQL%20Server%20and%20you%20don't%20expose%20the%20Encrypt%20and%20TrustServerCertificate%20settings%20to%20your%20users%2C%20it's%20recommended%20that%20you%20make%20application%20changes%20to%20allow%20users%20to%20opt-in%20to%20non-encrypted%20connections%20or%20connections%20that%20use%20an%20untrusted%20certificate.%20It's%20also%20recommended%20that%20you%20expose%20the%20HostNameInCertificate%20setting.%20This%20related%20setting%20allows%20users%20to%20specify%20a%20known%20hostname%20defined%20in%20a%20certificate%20that%20doesn't%20match%20the%20hostname%20they%20need%20to%20use%20to%20connect%20to%20the%20server.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EGetting%20the%20latest%20release%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThe%20latest%20bits%20are%20available%20to%20%3CA%20title%3D%22download%20Microsoft%20JDBC%20Driver%20for%20SQL%20Server%22%20href%3D%22https%3A%2F%2Faka.ms%2Fdownloadmssqljdbc%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Edownload%20from%20Microsoft%3C%2FA%3E%2C%20from%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMicrosoft%2Fmssql-jdbc%2Freleases%2Ftag%2Fv10.2.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGitHub%20repository%3C%2FA%3E%2C%20and%20via%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Fsearch.maven.org%2F%23search%257Cgav%257C1%257Cg%253A%2522com.microsoft.sqlserver%2522%2520AND%2520a%253A%2522mssql-jdbc%2522%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EMaven%20Central%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EAdd%20the%20JDBC%2010.2%20RTW%20driver%20to%20your%20Maven%20project%20by%20adding%20the%20following%20code%20to%20your%20POM%20file%20to%20include%20it%20as%20a%20dependency%20in%20your%20project%20(choose%20.jre8%2C%20.jre11%2C%20or%20.jre17%20for%20your%20required%20Java%20version).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3CDEPENDENCY%3E%20%0A%20%20%3CGROUPID%3Ecom.microsoft.sqlserver%3C%2FGROUPID%3E%20%0A%20%20%3CARTIFACTID%3Emssql-jdbc%3C%2FARTIFACTID%3E%20%0A%20%20%3CVERSION%3E10.2.0.jre17%3C%2FVERSION%3E%20%0A%3C%2FDEPENDENCY%3E%20%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EHelp%20us%20improve%20the%20JDBC%20Driver%20by%20taking%20our%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fmssqljdbcsurvey%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Esurvey%3C%2FA%3E%3CSPAN%3E%2C%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMicrosoft%2Fmssql-jdbc%2Fissues%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Efiling%20issues%3C%2FA%3E%3CSPAN%3E%20on%20GitHub%20or%20contributing%20to%20the%20project.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CBR%20%2F%3EPlease%20also%20check%20out%20our%20%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fsqldev%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Etutorials%3C%2FA%3E%20to%20get%20started%20with%20developing%20apps%20in%20your%20programming%20language%20of%20choice%20and%20SQL%20Server.%3CP%3E%3CBR%20%2F%3EDavid%20Engel%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3100754%22%20slang%3D%22en-US%22%3E%3CP%3EJDBC%20Driver%2010.2%20for%20SQL%20Server%20has%20been%20released%2C%20adding%20official%20support%20for%20Java%2017%20and%26nbsp%3Bseveral%20other%20improvements.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3100754%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESQLServerDrivers%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Feb 15 2022 01:37 PM
Updated by: