Type Property (JobServer)
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The Type property exposes configured attributes of the referenced Microsoft SQL Server component.
구문
object
.Type
Parts
- object
An expression that evaluates to an object in the Applies To list
Data Type
Long, enumerated
Modifiable
Read-only
Prototype (C/C++)
HRESULT GetType(SQLDMO_JOBSERVER_TYPE* pRetVal)
Returns
For the JobServer object, interpret the Type property using these values.
Constant | Value | Description |
---|---|---|
SQLDMOJobServer_MSX |
3 |
An instance of SQL Server participates in multiserver administration. The current instance of SQL Server masters administration for other servers. |
SQLDMOJobServer_StandAlone |
1 |
The current instance of SQL Server does not participate in multiserver administration. |
SQLDMOJobServer_TSX |
2 |
The current instance of SQL Server participates in multiserver administration. The current instance of SQL Server is a target for administration. |
SQLDMOJobServer_Unknown |
0 |
The value is not valid. |
주의
Create master servers using SQL-DMO by adding a SQL Server Agent master server operator to those instances of SQL Server that will master a multiserver administration group. Use the MSXEnlist and MSXDefect methods of the JobServer object referencing a target server to manage group membership.
[!참고] For this property to work correctly the SQL Server Agent extended stored procedures must have been enabled using sp_configure.
Applies To:
참고 항목
참조
MSXDefect Method
MSXEnlist Method