Méthode BackupDevice.ReadMediaHeader
Enumerates the values of a backup media header record.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Function ReadMediaHeader As DataTable
'Utilisation
Dim instance As BackupDevice
Dim returnValue As DataTable
returnValue = instance.ReadMediaHeader()
public DataTable ReadMediaHeader()
public:
DataTable^ ReadMediaHeader()
member ReadMediaHeader : unit -> DataTable
public function ReadMediaHeader() : DataTable
Valeur de retour
Type : System.Data.DataTable
A DataTable system object that contains the backup media header record.
Notes
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.
Exemples
Sauvegarde et restauration des bases de données et journaux de transactions
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo