SQL-DMO
AutoStart Property
The AutoStart property exposes default agent service behavior when an operating system start occurs.
Applies To
JobServer Object | SQLServer2 Object |
Syntax
object.AutoStart [= value]
Parts
object
Expression that evaluates to an object in the Applies To list
value
TRUE or FALSE
Data Type
Boolean
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetAutoStart(LPBOOL pRetVal);
HRESULT SetAutoStart(BOOL NewValue);
Remarks
If TRUE, the agent service attempts to start when the operating system starts.
If FALSE, the agent service is not launched as part of an operating system start. The agent service must be started manually.