Condividi tramite


HasSchedule Property

Questa funzionalità verrà rimossa in una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa funzionalità in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.

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

Sintassi

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);

Osservazioni

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:

Job Object