Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Cette fonctionnalité sera supprimée dans une prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et prévoyez de modifier les applications qui utilisent actuellement cette fonctionnalité.
The Type property exposes configured attributes of the referenced Microsoft SQL Server component.
Syntaxe
object
.Type [= value]
Parts
- object
An expression that evaluates to an object in the Applies To list.
- value
A long integer that specifies SQL Server Agent job attributes as described in Settings.
Data Type
Long, enumerated
Modifiable
Read-only for the Job object. Read/write for the JobFilter object.
Prototype (C/C++)
HRESULT GetType(SQLDMO_JOB_TYPE* pRetVal)
HRESULT SetType(SQLDMO_JOB_TYPE NewValue)
Settings
| Constant | Value | Description |
|---|---|---|
SQLDMOJob_Local |
1 |
The job executes on an instance of SQL Server on which the job is stored. |
SQLDMOJob_MultiServer |
2 |
The job executes on one or more target servers. |
SQLDMOJob_Unknown |
0 |
The job is not valid. |
Notes
Set the Type property of the JobFilter object to control result set membership when using the EnumJobs method of the JobServer object.