[Bug]: changing recovery model en database configuration
维护者通常 1 天内回复
@ericjulien 已经在做这个了。
开始于 2026年8月6日。
评估
这个 Issue 还没有评估数据。
描述
Container image tag
sqldbpreview-dpgaeqhmgphzd4bk.azurecr.io/azure-sql/db-dev:latest
Host OS
Windows 11 (x86_64)
Container runtime and version
(build 2026-07-16, EngineEdition = 5, ProductVersion 12.0.2000.8)
What happened
alter database recovery model should not be allowed into sql-azure-container databases to match cloud version.
Additionally, after changing a database's recovery model with ALTER DATABASE ... SET RECOVERY, sys.databases reports inconsistent values for the same database depending on which database the query runs from:
Queried from master → returns the actual value that was set (e.g. BULK_LOGGED).
Queried from within the user database → always returns FULL, regardless of what was set.
seems hardcoded.
Steps to reproduce
-- 1) Create a database and change its recovery model (from a master connection)
CREATE DATABASE recotest;
GO
ALTER DATABASE recotest SET RECOVERY BULK_LOGGED;
GO
-- 2) Read it from master -> returns BULK_LOGGED (the real value)
SELECT recovery_model_desc
FROM sys.databases
WHERE name = 'recotest';
GO
-- 3) Now connect WITH Database=recotest and read the SAME view
-- (e.g. sqlcmd ... -d recotest) -> returns FULL (inconsistent!)
SELECT recovery_model_desc
FROM sys.databases
WHERE database_id = DB_ID();
GO
Expected: both queries return the same value (BULK_LOGGED).
Actual: master returns BULK_LOGGED, the user-database connection returns FULL.
Same thing via sqlcmd against the container, to show the context dependency:
docker exec /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P -C -d master -Q "SELECT recovery_model_desc FROM sys.databases WHERE name='recotest';"
-> BULK_LOGGED
docker exec /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P -C -d recotest -Q "SELECT recovery_model_desc FROM sys.databases WHERE database_id=DB_ID();"
-> FULL
Additional context
No response
Confirmation
- I scanned open issues and Known limitations for a duplicate.
- 主要语言
- Shell
- 星标
- 17
- 派生
- 4
- 平均合并
- 19 分钟
- 30 天内合并 PR
- 11
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/azure-sql-database-container 的其他 Issue
-
bug needs-triage User-filled
难度 4/5 3-5 天 新手友好度 38/100
microsoft/azure-sql-database-container#165 · 5 条评论 ·
维护者通常 1 天内回复
-
Canonical recipes bind 1433 on all interfaces with the example SA password可能已有人在做 @ascarter 于 7 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 68/100
microsoft/azure-sql-database-container#163 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Bug]: BLOB STORAGE EXTERNAL DATA SOURCE causes A severe error occurred on the current command. The results, if any, should be discarded.可能已有人在做 @ericjulien 于 7 天前认领。 未关闭bug needs-triage User-filled
难度 4/5 3-5 天 新手友好度 44/100
microsoft/azure-sql-database-container#160 · 已指派 2 人 ·
维护者通常 1 天内回复
-
[Bug]: container images do not refreshed in almost 30 days可能重新可做 @ericjulien 于 35 天前认领,目前没有进行中的 PR。 未关闭bug User-filled
microsoft/azure-sql-database-container#141 · 1 条评论 · 已指派 2 人 ·
维护者通常 1 天内回复
-
[Bug]: An error occurs when importing bacpac可能重新可做 @ericjulien 于 42 天前认领,目前没有进行中的 PR。 未关闭bug User-filled
microsoft/azure-sql-database-container#140 · 已指派 2 人 ·
维护者通常 1 天内回复
查看 microsoft/azure-sql-database-container 的全部 Issue
相似的 Issue
-
area/documentation squad/marvin
难度 1/5 1 小时以内 新手友好度 90/100
rancher/stackstate-product-docs#443 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
getumbrel/umbrel-apps#6142 ·
维护者通常 2 天内回复
-
triage/confirmed
难度 2/5 1-3 小时 新手友好度 78/100
agentscope-ai/agentscope#3030 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
WingedGuardian/GENesis-AGI#2599 ·
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 88/100
petry-projects/.github-private#1981 · 1 条评论 ·
维护者通常 1 天内回复