The ReadMediaHeader method returns a QueryResults object enumerating the values of a backup media header record.
object.ReadMediaHeader( Server ) as QueryResults
object
Expression that evaluates to an object in the Applies To list
Server
SQLServer object connected to an instance of Microsoft® SQL Server™ 2000 on which the backup device or operating system file is visible
HRESULT ReadMediaHeader(
LPSQLDMOSERVER ServerObject,
LPSQLDMOQUERYRESULTS* ppResults);
A QueryResults object containing one result set. For a description of the result set contents, see ReadBackupHeader Method (BackupDevice).
A database backup performed by SQL Server can target multiple devices of a single type and can span multiple media maintained by the device. To organize media used in backup, SQL Server defines the
To use the ReadMediaHeader method
When the media of a backup device is unused or unlabeled, such as when a disk device is empty, the ReadMediaHeader method succeeds, returning an empty QueryResults object.