Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Managed Backup to Microsoft Azure problem with SQL Server Web Edition #9999

Open
wants to merge 1 commit into
base: live
Choose a base branch
from

Conversation

luizvitorf
Copy link

• 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

  1. 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.

•	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 <X64> (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.
Copy link
Contributor

@luizvitorf : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Copy link
Contributor

Learn Build status updates of commit a44cf1d:

✅ Validation status: passed

File Status Preview URL Details
docs/relational-databases/backup-restore/sql-server-managed-backup-to-microsoft-azure.md ✅Succeeded

For more details, please refer to the build report.

For any questions, please:

@v-dirichards
Copy link
Contributor

@MashaMSFT

Can you review the proposed changes?

Important: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@prmerger-automator prmerger-automator bot added the aq-pr-triaged tracking label for the PR review team label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants