[Bug]: changing recovery model en database configuration
Maintainer thường phản hồi trong vòng 3 ngày
@ericjulien đang làm issue này rồi.
Từ ngày 6/8/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- Shell
- Star
- 17
- Fork
- 4
- Merge trung bình
- 12 giờ 8 phút
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/azure-sql-database-container
-
bug needs-triage User-filled
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
microsoft/azure-sql-database-container#165 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Canonical recipes bind 1433 on all interfaces with the example SA passwordCó thể đã có người làm @ascarter đã nhận 5 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 68/100
microsoft/azure-sql-database-container#163 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
[Bug]: BLOB STORAGE EXTERNAL DATA SOURCE causes A severe error occurred on the current command. The results, if any, should be discarded.Có thể đã có người làm @ericjulien đã nhận 5 ngày trước. Đang mởbug needs-triage User-filled
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 44/100
microsoft/azure-sql-database-container#160 · 2 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
[Bug]: Change Event Streaming cannot create Event Stream Group after successful sp_enable_event_streamCó thể làm lại được @ericjulien đã nhận 33 ngày trước và không có pull request nào đang mở. Đang mởbug User-filled
microsoft/azure-sql-database-container#149 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
[Bug]: container images do not refreshed in almost 30 daysCó thể làm lại được @ericjulien đã nhận 33 ngày trước và không có pull request nào đang mở. Đang mởbug User-filled
microsoft/azure-sql-database-container#141 · 1 bình luận · 2 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của microsoft/azure-sql-database-container
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
alunduil/alunduil-infrastructure#629 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
duckdb/duckdb-skills#19 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
YosysHQ/oss-cad-suite-build#216 ·