Managed Backup to Microsoft Azure problem with SQL Server Web Edition #9999
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
• 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:
OR