Aracılığıyla paylaş


Job.RemoveAllJobSchedules Method (Boolean)

Removes all shared and unshared schedules from the job.

Namespace: Microsoft.SqlServer.Management.Smo.Agent
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Bildirim
Public Sub RemoveAllJobSchedules ( _
    keepUnusedSchedules As Boolean _
)
public void RemoveAllJobSchedules (
    bool keepUnusedSchedules
)
public:
void RemoveAllJobSchedules (
    bool keepUnusedSchedules
)
public void RemoveAllJobSchedules (
    boolean keepUnusedSchedules
)
public function RemoveAllJobSchedules (
    keepUnusedSchedules : boolean
)

Parameters

  • keepUnusedSchedules

Remarks

On successful execution, the JobSchedules collection property of the Job object is emptied. To reschedule the referenced job, create JobSchedule objects and add them to the JobSchedulescollection property of the Job object.

Thread Safety

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.