SelectionInclude / SelectionExclude - Database selection filter
Automate the Database selection filter panel in single-server and multi-server applications.
SelectionInclude allows to select and load the databases matching the given filter.
SelectionExclude allows to unselect and unload the databases matching the given filter.
Tag Attributes
Attributes | Attribute Values | Value Description |
---|---|---|
DatabaseFilter | All / Databases / Templates | All: any file type |
Regex | User definable | The regex used to filter databases |
CaseSensitive | True / False | Only when Regex is provided. |
SearchFullPath | True / False | Only when Regex is provided. |
Servers (multi-server applications only) | Semi-colon separated server list | Servers to which the filter applies. |
Example Scripts
Single-server example
<ytriaAutomation>
<SelectionInclude DatabaseFilter="Databases" Regex="^a" CaseSensitive="True" SearchFullPath="False"/>
<SelectionExclude DatabaseFilter="Databases" Regex="a$" CaseSensitive="True" SearchFullPath="False"/>
</ytriaAutomation>
Multi-server example
<ytriaAutomation>
<SelectionInclude DatabaseFilter="Databases" Regex="^a" CaseSensitive="True" SearchFullPath="False" Servers="ACME01/ACME;ACME02/ACME"/>
<SelectionExclude DatabaseFilter="Databases" Regex="a$" CaseSensitive="True" SearchFullPath="False" Servers="ACME01/ACME;ACME02/ACME"/>
</ytriaAutomation>