Server.DeleteBackupHistory Method

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

Hinweise

Aktualisierter Text:

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.

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Überladungsliste

Name 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.

Siehe auch

Verweis

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

Andere Ressourcen

How to: Use an SMO Method with a Parameter in Visual Basic .NET
Sichern und Wiederherstellen von Datenbanken in SQL Server
Calling Methods
Verwalten von Servern