Server.DeleteBackupHistory Method

Definition

Overloads

DeleteBackupHistory(DateTime)

Deletes the entries in the backup and restore history tables for backup sets older than oldestDate

DeleteBackupHistory(Int32)

Deletes the entries in the backup and restore history tables for backup sets on mediaSetID

DeleteBackupHistory(String)

Deletes the entries in the backup and restore history tables for database

DeleteBackupHistory(DateTime)

Deletes the entries in the backup and restore history tables for backup sets older than oldestDate

C#
public void DeleteBackupHistory(DateTime oldestDate);

Parameters

oldestDate
DateTime

Applies to

Microsoft.SqlServer.SqlManagementObjects 160.2004021.0 ja Microsoft.SqlServer.SqlManagementObjects 150.18208.0
Toode Versioonid
Microsoft.SqlServer.SqlManagementObjects 150.18208.0, 160.2004021.0

DeleteBackupHistory(Int32)

Deletes the entries in the backup and restore history tables for backup sets on mediaSetID

C#
public void DeleteBackupHistory(int mediaSetId);

Parameters

mediaSetId
Int32

Applies to

Microsoft.SqlServer.SqlManagementObjects 160.2004021.0 ja Microsoft.SqlServer.SqlManagementObjects 150.18208.0
Toode Versioonid
Microsoft.SqlServer.SqlManagementObjects 150.18208.0, 160.2004021.0

DeleteBackupHistory(String)

Deletes the entries in the backup and restore history tables for database

C#
public void DeleteBackupHistory(string database);

Parameters

database
String

Applies to

Microsoft.SqlServer.SqlManagementObjects 160.2004021.0 ja Microsoft.SqlServer.SqlManagementObjects 150.18208.0
Toode Versioonid
Microsoft.SqlServer.SqlManagementObjects 150.18208.0, 160.2004021.0