After backups are created, you may need to view information about the backups, such as:
Information displayed when listing the database and transaction log files in a backup includes the logical name, physical name, file type (database or log), filegroup membership, backup-set size (in bytes), the maximum allowed file size, and the predefined file growth size (in bytes). This information is useful to determine the names of the files in a database backup before restoring the database backup when:
You can list the files in the database backup to determine which files were affected, and then restore those files onto a different drive when restoring the entire database, or restore just those files and apply any transaction log backups created since the database was backed up.
Listing the files in the backup allows you to determine which files are affected. For example, the backup contains a file that it needs to restore to the E:\ drive, but the destination server does not have an E:\ drive.; the file needs to be relocated to another location, such as the C:\ drive, when the file is restored.
Viewing the backup header displays information about all Microsoft® SQL Server™ and foreign backup sets on the media. Information displayed includes the types of backup devices used, the backup types (database, transaction, file, or differential database), and backup start and stop date/time information. This information is useful when you need to determine which backup set on the tape to restore, or the backups that are contained on the media. For more information about a detailed list of the header information displayed, see RESTORE HEADERONLY.
Note Viewing backup header information can take a long time for high-capacity tapes because the entire media needs to be scanned to display information about each backup on the media.
Viewing the media header displays information about the media itself, rather than the backups on the media. Viewing the media header is quick because only the media header is read, located one time at the beginning of the media. Media header information displayed includes the media name, description, name of the software that created the media header, and the date the media header was written. For more information about a detailed list of the header information displayed, see RESTORE LABELONLY.
For example, restoring the backup header information for the following tape media containing two SQL Server backups and two foreign (Windows NT) backups retrieves information for all backup sets on the media, requires that the entire tape be scanned. However, restoring the media header requires only information from the single media header written at the beginning of the tape to be retrieved.
To view the data and log files in a backup set
To view backup header information
To view media header information