Skip to content

Conversation

@bog-walk
Copy link
Member

@bog-walk bog-walk commented Dec 2, 2025

Description

Summary of the change:

  • Bump mssql-jdbc to 13.2.1.jre11.
  • Use SQL Server standard 2025 docker image (instead of Azure SQL).

Detailed description:

  • Why:

    • The bump of mssql-jdbc is long overdue.
    • Azure SQL Edge was retired in September 2025.
  • How: The driver version bump required setting a previously default value explicitly --> encrypt=false;


Type of Change

Please mark the relevant options with an "X":

  • Other - Test build dependency

Affected databases:

  • SqlServer

Checklist

  • Unit tests are in place
  • The build is green (including the Detekt check)

Related Issues

EXPOSED-919

- Also switch docker image to no longer use Azure SQL Edge
container_name: SQLServer
restart: always
image: mcr.microsoft.com/azure-sql-edge:2.0.0
image: mcr.microsoft.com/mssql/server:2025-RC1-ubuntu-24.04
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't planning to change this, but then I was looking into the underlying database & came across this announcement.
@obabichevjb Please checkout & try this new image locally to make sure it works well for you too.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checked, it works for me locally. All the tests passed for SQL Server on the new image.

SQLSERVER(
{
"jdbc:sqlserver://127.0.0.1:3005"
"jdbc:sqlserver://127.0.0.1:3005;encrypt=false;"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prior to mssql-jdbc version 10.x, this value was set to false by default. After version 10.x, it became true.
If left true, it would cause all tests to fail. Since we weren't encrypting before, I didn't see any reason to start now?

Comment on lines -51 to +54
if (dbProductName.startsWith("Microsoft Azure SQL ")) {
if (
dbProductName.startsWith("Microsoft Azure SQL ") ||
dbProductName.startsWith("Microsoft SQL Server ")
) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Full fix in PR #2676

@bog-walk bog-walk requested a review from obabichevjb December 2, 2025 04:49
@bog-walk bog-walk merged commit 7d83131 into main Dec 4, 2025
7 checks passed
@bog-walk bog-walk deleted the bog-walk/bump-sql-server-db-version branch December 4, 2025 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants