JobName Property
この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。
The JobName property is a string identifying a QL Server Agent job.
構文
object
.JobName [=value]
Parts
- object
An expression that evaluates to an object in the Applies To list
- value
A string naming an existing SQL Server Agent job
Data Type
String. The JobName property is constrained by the constraints applicable to the Name property of the Job object.
Modifiable
Read/write for the JobHistoryFilter object. Read-only for the Alert object.
Prototype (C/C++)
HRESULT GetJobName(SQLDMO_LPBSTR pRetVal);
HRESULT SetJobName(SQLDMO_LPCSTR NewValue);
メモ : |
---|
SQL Distributed Management Objects (SQL-DMO) strings are always returned as OLE BSTR objects. A C/C++ application obtains a reference to the string. The application must release the reference by using SysFreeString. |
解説
For the Alert object, the JobName property represents the name of the SQL Server Agent job run in response to the represented alert.
Setting the JobName property on the JobHistoryFilter object restricts the output of the EnumJobHistory method of the JobServer object. If used, the output includes only historical data for the named SQL Server Agent job.