Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

21,731

Downloads of v 12.10.0:

4

Last Update:

23 Apr 2025

Published Date:

23 Apr 2025

Package Maintainer(s):

Software Author(s):

  • Microsoft

Tags:

sql sql-server java jdbc microsoft

Microsoft JDBC Driver for SQL Server

(Waiting for Maintainer to take corrective action)

  • 1
  • 2
  • 3

12.10.0 | Updated: 23 Apr 2025

Downloads:

21,731

Downloads of v 12.10.0:

4

Published:

23 Apr 2025

Maintainer(s):

Software Author(s):

  • Microsoft

Microsoft JDBC Driver for SQL Server 12.10.0

(Waiting for Maintainer to take corrective action)

Legal Disclaimer: Neither this package nor Chocolatey Software, Inc. are affiliated with or endorsed by Microsoft. The inclusion of Microsoft trademark(s), if any, upon this webpage is solely to identify Microsoft goods or services and not for commercial purposes.

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed


Validation Testing Failed


Verification Testing Pending


Scan Testing Pending

IMPORTANT

This version is in moderation and has not yet been approved. This means it doesn't show up under normal search.

  • Until approved, you should consider this package version unsafe - it could do very bad things to your system (it probably doesn't but you have been warned, that's why we have moderation).
  • This package version can change wildly over the course of moderation until it is approved. If you install it and it later has changes to this version, you will be out of sync with any changes that have been made to the package. Until approved, you should consider that this package version doesn't even exist.
  • You cannot install this package under normal scenarios. See How to install package version under moderation for more information.
  • There are also no guarantees that it will be approved.
WARNING

There are versions of this package awaiting moderation (possibly just this one). See the Version History section below.

dgalbraith (maintainer) on 23 Apr 2025 21:36:15 +00:00:

User 'dgalbraith' (maintainer) submitted package.

chocolatey-ops (reviewer) on 23 Apr 2025 22:11:35 +00:00:

sqljdbc has failed automated validation.

Requirements

Requirements represent the minimum quality of a package that is acceptable. When a package version has failed requirements, the package version requires fixing and/or response by the maintainer. Provided a Requirement has flagged correctly, it must be fixed before the package version can be approved. The exact same version should be uploaded during moderation review.

  • Package automation scripts download a remote file without validating the checksum. More...
Description

Java Database Connectivity (JDBC) driver for use with SQL Server, and Azure SQL Database. The driver is available at no
extra charge and provides Java database connectivity from any Java application, application server, or Java-enabled
applet. This driver is a Type 4 JDBC driver that provides database connectivity through the standard JDBC application
program interfaces (APIs).

The Microsoft JDBC Driver for SQL Server has been tested against major application servers such as IBM WebSphere, and
SAP NetWeaver.

Package Parameters

The Languages package parameter can be set to install the package with the specified language. If no language is
specified the install will default to English.

Multiple languages can be installed by providing a comma-separated list of language codes.

  • /Languages=[language-codes] - installs the package using the specified languages. The languages must be supplied
    as a comma-separated listSupported languages are:
Language Locale Mapping Parameters
Brazilian (Portuguese) br ptb --params "/Languages=br"
German de deu --params "/Languages=de"
English en enu --params "/Languages=en"
Spanish es esn --params "/Languages=es"
French fr fra --params "/Languages=fr"
Italian it ita --params "/Languages=it"
Japanese ja jpn --params "/Languages=ja"
Korean ko kor --params "/Languages=ko"
Russian ru rus --params "/Languages=ru"
Chinese (Simplified) zh chs --params "/Languages=zh"
Chinese (Simplified) zh-CN chs --params "/Languages=zh-CN"
Chinese (Traditional) zh-TW cht --params "/Languages=zh-TW"

For example: choco install sqljdbc --params "/Languages=en,fr" to install the English and French versions of the driver

  • /InstallDir - sets the directory in which to install sqljdbc. The installation defaults to the system
    directory [Environment]::GetFolderPath('ProgramFiles')\Microsoft JDBC DRIVER for SQL Server
  • /User - override the default installation directory and install the driver in the user directory
    [Environment]::GetFolderPath('Programs')\Microsoft JDBC DRIVER for SQL Server

To have Chocolatey remember parameters on upgrade, be sure to set choco feature enable -n=useRememberedArgumentsForUpgrades.

Notes

  • The drivers will be installed under [InstallDir]\sqljdbc_X.Y\[LanguageMaping] where X.Y represents the
    Major.Minor versions of the package and LanguageMapping is the sub directory representing the mapping for
    the default (English - enu) or other specified languages
  • This package is automatically updated using the Chocolatey Automatic Package Update Model (AU).
    If you find it is out of date by more than a day or two, please contact the maintainer(s) and let them know the package is no longer updating correctly.

tools\chocolateyInstall.ps1
$ErrorActionPreference = 'Stop'

add-type @"
public struct Language {
   public string Name;
   public string Mapping;
   public string Checksum;
}
"@

$languageDefinitions =  @{
    'br'    = [Language] @{ Name = 'Brazilian (Portuguese)'; Mapping = 'ptb'; Checksum = 'c1f8c502c09b8cba24b199a4b8e63446796baabaedd07654b0ea4d5f1a3eee5f' }
    'de'    = [Language] @{ Name = 'German';                 Mapping = 'deu'; Checksum = 'b4b79a74acfffe6695afdee652ed0df1e1a4710fcbca4c18bb3665b5549c9b96' }
    'en'    = [Language] @{ Name = 'English';                Mapping = 'enu'; Checksum = 'c8a0fbfa69b20e48fb01b91d6cf4dd790c3017df1aa5355d8ff534b360ccbbf9' }
    'es'    = [Language] @{ Name = 'Spanish';                Mapping = 'esn'; Checksum = '28c055908ae7436e70ed3ce06dad3aa8b1985f56836aaf7afa645687f562c5eb' }
    'fr'    = [Language] @{ Name = 'French';                 Mapping = 'fra'; Checksum = '9bac6f88f7ebb372b9a40d45dedde2fbcb962738e5b23b4616dc23695d7f38d8' }
    'it'    = [Language] @{ Name = 'Italian';                Mapping = 'ita'; Checksum = '9ea4ccdcad59b8e4df10d1e12c2912817e4b67868c41b93712b59f3bf5934e63' }
    'ja'    = [Language] @{ Name = 'Japanese';               Mapping = 'jpn'; Checksum = '71b8c737e455a2f02519059ed6e1985d1c3ecbfc62fecab92c7a96b5256d2272' }
    'ko'    = [Language] @{ Name = 'Korean';                 Mapping = 'kor'; Checksum = 'ef217793951afef6c0e7a401e51a3ae8afdf29886d6460983db4d011617febdb' }
    'ru'    = [Language] @{ Name = 'Russian';                Mapping = 'rus'; Checksum = 'c9e44ac3b87555323a9406160b20a028fe32f7d93178ff106d70473cf49a2c20' }
    'zh'    = [Language] @{ Name = 'Chinese';                Mapping = 'chs'; Checksum = '1a386aa5a007932eab3d2c187c16715b052ac8f6179e74378d20f54327b728fd' }
    'zh-CN' = [Language] @{ Name = 'Chinese (Simplified)';   Mapping = 'chs'; Checksum = '1a386aa5a007932eab3d2c187c16715b052ac8f6179e74378d20f54327b728fd' }
    'zh-TW' = [Language] @{ Name = 'Chinese (Traditional)';  Mapping = 'cht'; Checksum = '59464887c3e91421fe74e43fc6e07e5e3588ff36a094c81bbf34555b7a564857' }
}

$base = 'https://download.microsoft.com/download/745da347-bd51-4bf0-a84e-3465608d8856'

$pp = Get-PackageParameters

if ($pp.InstallDir) {
    $installDir = $pp.InstallDir
} else {
    if ($pp.User) {
        $programs = [Environment]::GetFolderPath('LocalApplicationData')
    } else {
        $programs = [Environment]::GetFolderPath('ProgramFiles')
    }

    $installDir = Join-Path $programs 'Microsoft JDBC DRIVER for SQL Server'
}

# check the languages parameter and default to 'en' if not supplied
$languages = $pp['Languages']

if ($null -eq $languages -or $languages -eq '') {
  $languages = 'en'
}

$reLang = “(?i)^(br|de|en|es|fr|it|ja|ko|ru|zh|zh-CN|zh-TW)$”

$version = $Env:PackageVersion

# check for a three-part version and append a tr4ailing zero if needed
if ($version -match '^\d+\.\d+\.\d+$') {
  $version = $version + '.0'
}

foreach ($language in $languages -split ',') {
  if ($language -notmatch $reLang) {
    Write-Error "Unsupported language $($language)"
  }
  
  $language = $languageDefinitions[$language].Mapping
  $fileName = 'sqljdbc_{0}_{1}.zip' -f $version, $language
  $url      =  "$base/$language/$fileName"

  $packageArgs = @{
    PackageName   = $env:ChocolateyPackageName
    UnzipLocation = $installDir
    Url           = $url
    Checksum      = $languageDefinitions[$language].Checksum
    ChecksumType  = 'sha256'
  }
  
  Install-ChocolateyZipPackage @packageArgs  
}
tools\chocolateyUninstall.ps1
$ErrorActionPreference = 'Stop'

Get-ChildItem "Get-ChocolateyPath -PathType 'PackagePath'\*" -include sqljdbc*.Install.txt, sqljdbc*.txt | Foreach-Object {
    $zipContentFile += Get-Content $_.fullname
  }

if (($null -ne $zipContentFile) -and ($zipContentFile.Length -ge 1)) {
  $zipTargetFile = $zipContentFIle[0]
}

if (Test-Path -Path $zipTargetFile) {
  $unzipDirectory  = Split-Path $zipTargetFile
  $parentDirectory = Split-Path $unzipDirectory
}

Uninstall-ChocolateyZipPackage 'sqljdbc' 'sqljdbc_12.10.0.0_*.zip'

# Uninstall-ChocolateyZipPackage only removes child directories unpacked from
# the archive so remove the main and parent directories if empty
if ((Get-ChildItem $unzipDirectory | Measure-Object).Count -eq 0) {
  Remove-Item $unzipDirectory -ErrorAction SilentlyContinue -Force | Out-Null
}

if ((Get-ChildItem $parentDirectory | Measure-Object).Count -eq 0) {
  Remove-Item $parentDirectory -ErrorAction SilentlyContinue -Force | Out-Null
}

No results available for this package. We are building up results for older packages over time so expect to see results. If this is a new package, it should have results within a day or two.

Add to Builder Version Downloads Last Updated Status
Microsoft JDBC Driver for SQL Server 12.10.0 4 Wednesday, April 23, 2025
Waiting for Maintainer
Microsoft JDBC Driver for SQL Server 10.2.1.0 272 Saturday, May 14, 2022 Approved
Microsoft JDBC Driver for SQL Server 10.2.0.0 2701 Tuesday, February 1, 2022 Approved
Microsoft JDBC Driver for SQL Server 9.4.1.0 214 Thursday, December 9, 2021 Approved
Microsoft JDBC Driver for SQL Server 9.4.0.0 310 Friday, August 6, 2021 Approved
Microsoft JDBC Driver for SQL Server 9.2.1.0 281 Monday, June 7, 2021 Approved
Microsoft JDBC Driver for SQL Server 7.0.0.0 10583 Friday, August 24, 2018 Approved
Microsoft JDBC Driver for SQL Server 6.2.2.0 1518 Thursday, February 8, 2018 Approved
Microsoft JDBC Driver for SQL Server 6.0.8112.100 2260 Friday, January 27, 2017 Approved
Microsoft JDBC Driver for SQL Server 4.0.2206.100 1902 Tuesday, May 7, 2013 Approved

This package has no dependencies.

Discussion for the Microsoft JDBC Driver for SQL Server Package

Ground Rules:

  • This discussion is only about Microsoft JDBC Driver for SQL Server and the Microsoft JDBC Driver for SQL Server package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Microsoft JDBC Driver for SQL Server, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus