Udostępnij za pośrednictwem


Server.DeleteBackupHistory Method

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

Remarks

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.

Overload List

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