Server.DeleteBackupHistory 메서드 (String)
Deletes the backup history for the specified database.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
Public Sub DeleteBackupHistory ( _
database As String _
)
‘사용 방법
Dim instance As Server
Dim database As String
instance.DeleteBackupHistory(database)
public void DeleteBackupHistory(
string database
)
public:
void DeleteBackupHistory(
String^ database
)
member DeleteBackupHistory :
database:string -> unit
public function DeleteBackupHistory(
database : String
)
매개 변수
- database
유형: System.String
A String value that specifies the name of the database for which the backup history is deleted.
주의
Use this method to remove backup history logs for a specific database on the instance of SQL Server.
예
'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server
'Delete backup history from the database specified.
srv.DeleteBackupHistory("AdventureWorks2012")
PowerShell
$srv = new-object Microsoft.SqlServer.Management.Smo.Server("(local)")
$srv.DeleteBackupHistory("AdventureWorks2012")
참고 항목
참조
Microsoft.SqlServer.Management.Smo 네임스페이스