

It works the same way in DatabaseBackup, DatabaseIntegrit圜heck, and IndexOptimize. Now what if you want to select all user databases that are not in availability groups? For this scenario I have added a new keyword in the parameter. Here is how it works:ĮXECUTE = 'ALL_AVAILABILITY_GROUPS, = 'FULL' One of the most requested features for a long time has been the ability to select availability groups. You can stripe the backups to multiple files, and use the options MAXTRANSFERSIZE, and BLOCKSIZE.ĮXECUTE dbo.DatabaseBackup = 65536 The SQLCAT - team has a blog post about how you can optimize performance when backing up to Azure Blob Storage.
#Dtsql download how to
Here's how to use it:ĮXECUTE = 'Y' Striping of backups to Azure Blob Storage This enables you to do more frequent log backups of databases with high activity, and in periods of high activity.ĮXECUTE = 300 SQL Server Backup on Linuxīackup on SQL Server 2017 on Linux is now supported. Here's how it can be used to perform a transaction log backup if 1 GB of log has been generated since the last log backup, or if it has not been backed up for 300 seconds.
#Dtsql download full
Here's how it can be used to perform a differential backup if less than 50% of the database has been modified, and a full backup if 50% or more of the database has been modified. I am now utilizing this in DatabaseBackup, to perform smart differential and transaction log backups. Microsoft has introduced support in DMVs for checking how much of a database that has been modified since the last (non copy-only) full backup, and how much transaction log that has been generated since the last log backup. Here's to use it:ĮXECUTE = 'Y' SQL Server Smart Differential and Transaction Log Backup This feature let's you resume an index rebuild, if it would get aborted. Microsoft introduced online resumable index rebuilds in SQL Server 2017. The stored procedure will check sys.dm_db_incremental_stats_properties for each partition. Here's how it can be used to dynamically calculate the number of backup files, so that each file is getting at maximum 10240 MB.ĮXECUTE = 10240 Incremental StatisticsĪre you using incremental statistics? I have a new version of IndexOptimize with support for incremental statistics. Here's how it can be used to back up databases, with a size of 10240 MB or larger, to 8 files, and smaller databases to one file. I am now introducing two new options to do backup to multiple files. The challange has just been that you have got the same number of backup files for all databases, small or large. I have had the option to backup to to multiple files for a long time. SQL Server Smart Backup to Multiple FilesĪre you backing up to multiple files to improve backup performance? Are you running into the size limitations, when backing up to Azure Blob Storage? Sign up for the newsletter to be alerted about updates to the solution.

The SQL Server Maintenance Solution is available on GitHub.

Learn more about using the SQL Server Maintenance Solution:

This script creates all the objects and jobs that you need. My friend Ola has done a better job on these scripts than I’ve seen anywhere else, hands down.” - Buck Woody Getting Startedĭownload MaintenanceSolution.sql. Download, read, understand and implement these scripts. “After you review this checklist run - do not walk - over to this website.
