• Megistal (1/27/2012)


    First nice article!

    Second, must I understand that the only way in SQL 2008 and Up to break the log chain is to switch to simple recovery model?

    Pre-SQL Server 2008, there were a couple of command, namely BACKUP LOG WITH NO_LOG or BACKUP LOG WITH TRUNCATE_ONLY (they are functionally equivalent) that, when issued, would force a log file truncation and so break the log chain

    Ty

    My understanding is that the log chain starts at the last full DB backup. So if someone runs a full backup of the DB in the middle of your backup cycle, then deletes that full backup, your log chain is broken.

    If there is a need to run a DB backup, but you don't want your chain to be broken, running a COPY ONLY DB backup will work.

    BACKUP DATABASE {DBName} TO DISK = '{Backup location}' WITH COPY_ONLY