BackupDevice.ReadBackupHeader BackupDevice.ReadBackupHeader BackupDevice.ReadBackupHeader Method

Definition

Enumerates the contents of the media maintained by a backup device or operating system file.

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

A DataTable system object that contains the backup device or operating system file media information.

Examples

Backing Up and Restoring Databases and Transaction Logs

Remarks

The ReadBackupHeader method returns the backup header information into a DataTable object. The information returned is dependent on the version of SQL Server and is equivalent to the RESTOR HEADER ONLY Transact-SQL command.

Applies to