DeleteBackupHistory 메서드 (String)
Deletes the backup history for the specified database.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo
구문
‘선언
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 srv2 As Server
srv2 = New Server
'Delete backup history from the database specified.
srv3.DeleteBackupHistory("AdventureWorks")