BackupDevice.ReadMediaHeader BackupDevice.ReadMediaHeader BackupDevice.ReadMediaHeader Method

Definition

Enumerates the values of a backup media header record.

public:
 System::Data::DataTable ^ ReadMediaHeader();
public System.Data.DataTable ReadMediaHeader ();
Public Function ReadMediaHeader () As DataTable
Returns

A DataTable system object that contains the backup media header record.

Examples

Backing Up and Restoring Databases and Transaction Logs

Remarks

The ReadMediaHeader method returns the backup media header record in a DataTable object. The information returned is dependent on the version of SQL Server and is equivalent to the RESTOR LABEL ONLY Transact-SQL command.

Applies to