Run On-Demand Database Discovery
Microsoft.SQLServer.Windows.Task.DBEngine.TriggerOnDemandDBDiscovery (Task)
This task allows you to run on-demand Database discovery on a selected SQL Server Database Engine on Windows. Note that before running this task, make sure that Database discovery is enabled.
Element properties: Member Modules:
Source Code: <Task ID="Microsoft.SQLServer.Windows.Task.DBEngine.TriggerOnDemandDBDiscovery" Target="Microsoft.SQLServer.Windows.DBEngine" Accessibility="Internal" Enabled="true" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="Microsoft.SQLServer.Windows.WriteAction.OnDemandDiscoveryTrigger" RunAs="SqlCoreLib!Microsoft.SQLServer.Core.RunAs.Task">
<ManagementGroupId>$Target/ManagementGroup/Id$</ManagementGroupId>
<DiscoveryId>$MPElement[Name='Microsoft.SQLServer.Windows.Discovery.Database']$</DiscoveryId>
<TargetInstanceId>$Target/Id$</TargetInstanceId>
<TaskTimeoutSeconds>300</TaskTimeoutSeconds>
</WriteAction>
</Task>