Was this page helpful?
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Enabled Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

The Enabled property represents the enabled or disabled state of SQL Server Agent and replication objects.

object.Enabled [=value]


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




Read-only for the DistributionPublisher object. Read/write for all other applicable objects.

HRESULT GetEnabled(LPBOOL pRetVal);
HRESULT SetEnabled(BOOL NewValue);

Setting the Enabled property enables or disables a SQL Server Agent or replication element. For example, setting the Enabled property of an Operator object to FALSE disables a SQL Server Agent operator. A disabled operator d not receive notification when an alert is raised.

Setting the Enabled property of the JobFilter object restricts list output to the appropriate jobs when SQL Server Agent jobs are listed using the EnumJobs method of the JobServer object.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft