Status Property (Subscription Objects)
Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.
The Status property returns component execution or integrity state information.
구문
object
.Status [= value]
Parts
- object
An expression that evaluates to an object in the Applies To list.
- value
A long integer that identifies the status of the referenced component as described in Settings.
Data Type
Long, enumerated
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetStatus(SQLDMO_SUBSTATUS_TYPE* pRetVal);
HRESULT SetStatus(SQLDMO_SUBSTATUS_TYPE NewValue);
Settings
Constant | Value | Description |
---|---|---|
SQLDMOSubStat_Active |
2 |
The subscription is active. The agent maintains the subscription. |
SQLDMOSubStat_Default |
1000 |
SQLDMOSubStat_Unknown. |
SQLDMOSubStat_Inactive |
0 |
The subscription is inactive. The agent does not maintain subscription. |
SQLDMOSubStat_Unknown |
1000 |
The subscription state cannot be determined. |
SQLDMOSubStat_Unsynced |
1 |
The subscription has not been synchronized. Manual or automated synchronization must occur before the agent can maintain the subscription. |
Applies To:
|