
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.


This script creates all the objects and jobs that you need. It’s very comprehensive, is efficient with resources, has numerous options, and is a brilliant piece of SQL coding!” - SQL Server Magazine Getting Startedĭownload MaintenanceSolution.sql. “Hands down, one of the best tools out there! If you’re responsible for a database, you should be using Ola’s scripts.
