About Transaction Log Loads

Once you've restored a database, you can load the transaction log dump(s) that were accomplished after that database dump. Loading transaction logs allows you to recover as much of a database as possible in case of system failure.

Backups of the transaction log must be loaded in the sequence in which they were made. SQL Server checks the timestamps on each dumped database and each dumped transaction log to see that the sequence is correct.

Loading a transaction log is also referred to as applying a transaction log. Loading a transaction log results in re-execution of the changes it contains and in rolling back any transactions that were uncommitted when the transaction log was backed up.

When the entire sequence of transaction log dumps has been loaded, the database is restored to its state at the time of the last transaction log dump, minus active transactions. (The exception to this is the DUMP TRANSACTION statement itself, which was active at that point. It is not rolled back; it is completed by the next LOAD TRANSACTION statement.)

To learn how to load transaction logs, see Restoring a Database or Applying a Transaction Log, earlier in this chapter.