Type Property (Job, JobFilter) (SQL-DMO)

The Type property exposes configured attributes of the referenced Microsoft® SQL Server™ component.

Applies To
Job Object JobFilter Object

Syntax

object.Type [= value]

Part Description
object Expression that evaluates to an object in the Applies To list
value Long integer specifying SQL Server Agent job attributes as described in Settings

Settings
Constant Value Description
SQLDMOJob_Local 1 Job will execute on the SQL Server installation on which the job is stored
SQLDMOJob_MultiServer 2 Job will execute on one or more TSX target servers
SQLDMOJob_Unknown 0 Job is bad or invalid

Remarks

Set the Type property of the JobFilter object to control result set membership when using the EnumJobs method of the JobServer object.

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)

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.