共用方式為


HasSchedule Property

未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。

The HasSchedule property reports whether a schedule exists for a SQL Server Agent job.

語法

object.HasSchedule

Parts

  • object
    An expression that evaluates to an object in the Applies To list

Data Type

Boolean

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetHasSchedule(LPBOOL pRetVal);

備註

If TRUE, the job has at least one schedule. Query the JobSchedules collection to evaluate which schedule is enabled for the job.

If FALSE, the job has no schedule. The JobSchedules collection is empty.

Applies To: