Change SQL Server default backup compression

The default backup mode for SQL Server databases is no compression.

When creating maintenance plans, you’d need to select enable database backup compression for each plan.

In order to change the server default setting, use the following:

— View current setting. If result is 0, then compression is not enabled.

SELECT value 
FROM sys.configurations 
WHERE name = 'backup compression default' ;
GO

— To change SQL Server default setting, run the following:

EXEC sp_configure 'backup compression default', 1 ;
RECONFIGURE WITH OVERRIDE ;
GO

Advertisements
This entry was posted in SQL, SQL Server, SQL Server 2012, SQL Server 2014. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s