title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | helpviewer_keywords | |
---|---|---|---|---|---|---|---|---|---|
View or configure the backup compression algorithm (server configuration option) |
Find out about the backup compression algorithm option. See how it determines the algorithm to use for backup compression, and learn how to set it. |
MikeRayMSFT |
mikeray |
08/24/2022 |
sql |
configuration |
conceptual |
|
[!INCLUDE SQL Server 2022]
This topic describes how to view or configure the backup compression algorithm server configuration option in [!INCLUDEssnoversion] with [!INCLUDEtsql]. The backup compression algorithm option determines which algorithm to use to set the backup.
The backup compression algorithm
configuration option is required for you to implement integrated acceleration and offloading solutions.
- [!INCLUDE sssql22-md].
- Requires Windows Operating System
Execute permissions on sp_configure with no parameters or with only the first parameter are granted to all users by default. To execute sp_configure with both parameters to change a configuration option or to run the RECONFIGURE statement, a user must be granted the ALTER SETTINGS server-level permission. The ALTER SETTINGS permission is implicitly held by the sysadmin and serveradmin fixed server roles.
-
Connect to the [!INCLUDEssDE].
-
From the Standard bar, click New Query.
-
Copy and paste the following example into the query window and click Execute. This example queries the sys.configurations catalog view to determine the value for
backup compression algorithm
. A value of 0 means that backup compression is off, and a value of 1 means that SQL Server will use the default backup compression algorithm (MS_XPRESS). A value of 2, means that SQL Server will use Intel® QAT backup compression algorithm.
SELECT value
FROM sys.configurations
WHERE name = 'backup compression algorithm' ;
GO
-
Connect to the [!INCLUDEssDE].
-
From the Standard bar, click New Query.
-
Copy and paste the following example into the query window and click Execute. This example shows how to use sp_configure to configure the server instance to use Intel® QAT as the default compression algorithm:
EXEC sp_configure 'backup compression algorithm', 2;
RECONFIGURE;
To change the default compression algorithm back to the default, use the following script:
EXEC sp_configure 'backup compression algorithm', 1;
RECONFIGURE;
For more information, see Server Configuration Options (SQL Server).
BACKUP (Transact-SQL)
Server Configuration Options (SQL Server)
RECONFIGURE (Transact-SQL)
sp_configure (Transact-SQL)
Backup Overview (SQL Server)