다음을 통해 공유


Type Property (Category)

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

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

구문

object.Type [= value]

Parts

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

  • value
    A long integer that specifies a job category classification as described in Settings.

Data Type

Long, enumerated

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetType(SQLDMO_CATEGORYTYPE_TYPE* pRetVal)
HRESULT SetType(SQLDMO_CATEGORYTYPE_TYPE NewValue)

Settings

Constant

Value

Description

SQLDMOCategoryType_/LocalJob

1

The category is used to classify jobs that execute on an instance of SQL Server on which the job is stored.

SQLDMOCategoryType_/MultiServerJob

2

The category is used to classify jobs that execute on one or more target servers.

SQLDMOCategoryType_None

3

The job is not classified by a category.

SQLDMOCategoryType_/Unknown

0

The category is not valid, or the Category object references a classification used for alerts or operators.

주의

The Type property is valid only for categories used to classify SQL Server Agent jobs.

Applies To: