microsoft / microsoft/azure-sql-database-container
[Bug]: All the database names in `sys.databases` are set to “master”
Open
@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.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.