VacuumSchedule Class
Define the vacuuming (data removal) schedule for the Notification ServicesApplication.
네임스페이스: Microsoft.SqlServer.Management.Nmo
어셈블리: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
구문
‘선언
Public NotInheritable Class VacuumSchedule
Inherits NamedSmoObject
public sealed class VacuumSchedule : NamedSmoObject
public ref class VacuumSchedule sealed : public NamedSmoObject
public final class VacuumSchedule extends NamedSmoObject
public final class VacuumSchedule extends NamedSmoObject
주의
Vacuuming removes older event and notification data from the application database. For more information about the vacuuming process, see 데이터 제거 구성.
The vacuuming process runs daily at the specified times for the specified duration.
Vacuuming schedules cannot overlap. If schedules overlap, Notification Services stops the earlier vacuuming process before the later one starts.
Vacuuming schedules are optional, and an application can have multiple vacuum schedules. If you do not specify at least one vacuum schedule, obsolete data is not removed from the application database.
Inheritance Hierarchy
System.Object
Microsoft.SqlServer.Management.Smo.SmoObjectBase
Microsoft.SqlServer.Management.Smo.SqlSmoObject
Microsoft.SqlServer.Management.Smo.NamedSmoObject
Microsoft.SqlServer.Management.Nmo.VacuumSchedule
예
The following examples show how to create a schedule for removing obsolete data and then add the schedule to the collection of vacuum schedules for the application:
VacuumSchedule vacuumSchedule1 = new VacuumSchedule(
myApplication, "1");
vacuumSchedule1.StartTime = new TimeSpan(23, 0, 0);
myApplication.VacuumSchedules.Add(vacuumSchedule1);
Dim vacuumSchedule1 As VacuumSchedule = _
New VacuumSchedule(myApplication, "1")
vacuumSchedule1.StartTime = New TimeSpan(23, 0, 0)
myApplication.VacuumSchedules.Add(vacuumSchedule1)
스레드 보안
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
플랫폼
개발 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
대상 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
참고 항목
참조
VacuumSchedule Members
Microsoft.SqlServer.Management.Nmo Namespace