Skip to content

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

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.

Metadata

Metadata

Labels

User-filledSubmitted by a Private Preview participantbugSomething isn't workingneeds-triageAwaiting triage

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions