Wondering whether to take a full or differential backup? See what percentage of your data has changed using native SQL Server tools!
If you’ve never read
). The cool thing about code like this is that it can be bundled into other maintenance procedures and it can integrate with monitoring and maintenance tools. For instance, you could run this procedure on a schedule with predefined diff thresholds that would flag the appropriate type of backup job for execution. You could then use enterprise monitoring tools like MOM or SCOM to determine the best maintenance windows to guarantee the backups run at the right time, and voila! You’ve got the beginnings of an automated backup and recovery strategy.