Freigeben über


Server.DeleteBackupHistory-Methode

Geschützte Member einschließen
Geerbte Member einschließen

Deletes the backup history for this instance of SQL Server up until the specified date and time.

Das Element ist überladen. Um vollständige Informationen zu diesem Element zu erhalten, einschließlich Syntax, Verwendung und Beispielen, klicken Sie auf einen Namen in der Überladungsliste.

Überladungsliste

  Name Beschreibung
Öffentliche Methode DeleteBackupHistory(DateTime) Deletes the backup history for this instance of SQL Server up until the specified date and time.
Öffentliche Methode DeleteBackupHistory(Int32) Deletes the backup history for the specified media set.
Öffentliche Methode DeleteBackupHistory(String) Deletes the backup history for the specified database.

Zum Anfang

Hinweise

This method has three overloads that let you delete the backup history that is stored on the instance of SQL Server. You can do this by specifying a cutoff date, a media set, the name of a database.

Siehe auch

Verweis

Server Klasse

Microsoft.SqlServer.Management.Smo-Namespace