다음을 통해 공유


HasServer Property

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The HasServer property reports the presence of a target server for a job.

구문

object
.HasServer

Parts

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

Data Type

Boolean

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetHasServer(LPBOOL pRetVal);

주의

If TRUE, the ApplyToTargetServer or ApplyToTargetServerGroup methods have completed successfully, and the job may be available for execution.

If FALSE, the job does not have an execution target set.

SQL Server Agent jobs must have at least one job step and must be targeted to a server to be executable.

For stand-alone or multiserver administration target servers, the job can be targeted only to the local server. For a multiserver administration master server, the targeted server can be itself or any server enlisted as a multiserver target.

The ApplyToTargetServer and ApplyToTargetServerGroup methods set the target server of a job.

Applies To: