Partager via


Server.DeleteBackupHistory Method

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

Notes

Texte mis à jour :

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.

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.

Liste de surcharge

Nom Description
Server.DeleteBackupHistory (DateTime)
Deletes the backup history for this instance of Microsoft 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.

Voir aussi

Référence

Server Class
Server Members
Microsoft.SqlServer.Management.Smo Namespace

Autres ressources

How to: Use an SMO Method with a Parameter in Visual Basic .NET
Sauvegarde et restauration de bases de données dans SQL Server
Calling Methods
Gestion des serveurs