From a44cf1d7365eab92775541789b917403a26d4dab Mon Sep 17 00:00:00 2001 From: luizvitorf Date: Tue, 16 Jul 2024 08:32:44 -0300 Subject: [PATCH] Managed Backup to Microsoft Azure problem with SQL Server Web Edition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • To include in documentation: Note: It is not possible to use Managed Backup to Microsoft Azure in SQL Server Web Edition, since all backups are made using the COMPRESSION option and this is not supported by Web Edition. • Explanation: Using the SQL Server Web Edition version: SELECT @@VERSION Microsoft SQL Server 2022 (RTM-CU12-GDR) (KB5036343) - 16.0.4120.1 (X64) Mar 18 2024 12:02:14 Copyright (C) 2022 Microsoft Corporation Web Edition (64-bit) on Windows Server 2022 Datacenter 10.0 (Build 20348: ) (Hypervisor) When Managed Backup to Microsoft Azure is enabled, the column "is_managed_backup_enabled" in the query below returns the value 1 for all databases (including for newly created databases). Use msdb GO SELECT * FROM managed_backup.fn_backup_db_config (NULL) I created a database called "PWT_Teste_Erro_Backup" and every 5 minutes it generated the backup error below, informing that it was not possible to perform the backup using the "COMPRESSION" option: BACKUP DATABASE is terminating abnormally. BACKUP failed to complete the command BACKUP DATABASE PWT_Teste_Erro_Backup. Check the backup application log for detailed messages. BACKUP DATABASE WITH COMPRESSION is not supported on Web Edition (64-bit). There is no information in the documentation for SQL Server Web Edition. Upon review of the procedure "[msdb].[managed_backup].[sp_do_backup]" that is used to create backups, we can see that it ALWAYS uses the COMPRESSION option, therefore there is no validation or treatment for SQL Server Web Edition. So my suggestion would be: 1) Change this documentation and make it clear that it is not possible to use this feature with SQL Server Web Edition, once backups are ALWAYS being made with the COMPRESSION option and will generate an error in all execution attempts. OR 2) Change the procedure "[msdb].[managed_backup].[sp_do_backup]" and include a validation to not use the COMPRESSION option when it is a SQL Server Web Edition. --- .../sql-server-managed-backup-to-microsoft-azure.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/relational-databases/backup-restore/sql-server-managed-backup-to-microsoft-azure.md b/docs/relational-databases/backup-restore/sql-server-managed-backup-to-microsoft-azure.md index 86f4eb287c4..801e57d4008 100644 --- a/docs/relational-databases/backup-restore/sql-server-managed-backup-to-microsoft-azure.md +++ b/docs/relational-databases/backup-restore/sql-server-managed-backup-to-microsoft-azure.md @@ -114,7 +114,9 @@ If more than 10 concurrent full database backups are scheduled, a warning is iss > [!NOTE] > SQL Server managed backup isn't supported with proxy servers. -> + +> [!NOTE] +> It is not possible to use Managed Backup to Microsoft Azure in SQL Server Web Edition, since all backups are made using the COMPRESSION option and this is not supported by Web Edition. ## Supportability