The Status property returns component execution or integrity state information.
object.Status [= value]
object
Expression that evaluates to an object in the Applies To list
value
Long integer that identifies the status of the referenced component as described in Settings
Long, enumerated
Read/write
HRESULT GetStatus(SQLDMO_SUBSTATUS_TYPE* pRetVal);
HRESULT SetStatus(SQLDMO_SUBSTATUS_TYPE NewValue);
Constant | Value | Description |
---|---|---|
SQLDMOSubStat_Active | 2 | Subscription is active. Agent will maintain subscription. |
SQLDMOSubStat_Default | 1000 | SQLDMOSubStat_Unknown. |
SQLDMOSubStat_Inactive | 0 | Subscription is inactive. Agent will not maintain subscription. |
SQLDMOSubStat_Unknown | 1000 | Subscription state cannot be known. |
SQLDMOSubStat_Unsynced | 1 | Subscription has not been synchronized. Manual or automated synchronization must occur before agent can maintain subscription. |