microsoft / microsoft/azure-sql-database-container

[Bug]: All the database names in `sys.databases` are set to “master”

Open
#139 0 comments 0 reactions 1 assignee View on GitHub

@ericjulien is already working on this.

Since Aug 25, 2026.

bug needs-triage User-filled
Dominant language
Shell
Stars
17
Forks
4
Avg merge
9h 49m
Merged PRs (30d)
15

Description

Container image tag

sqldbpreview-dpgaeqhmgphzd4bk.azurecr.io/azure-sql/db-dev:latest

Host OS

Windows 11 (x86_64)

Container runtime and version

Docker version 29.1.3, build f52814d

What happened

When I connect to the master database and query sys.databases, all database names are displayed as “master.”
I was able to resolve this to the correct database names by using the DB_NAME() function.

Image
Steps to reproduce

In environments launched with MSSQL_PID=Developer, the system database appears to display unexpected content.

You can reproduce this using the following command.

docker run -it --rm --name sqldbdev --publish 127.0.0.1:50001:1433 --env ACCEPT_EULA=Y --env MSSQL_PID=Developer --env "MSSQL_SA_PASSWORD=$ENV:SQLPASS" sqldbpreview-dpgaeqhmgphzd4bk.azurecr.io/azure-sql/db-dev
Additional context

No response

Confirmation
  • I scanned open issues and Known limitations for a duplicate.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.