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:
参照
関連項目
ApplyToTargetServer Method
ApplyToTargetServerGroup Method