Object Filter enables you to include or exclude database objects in schema comparison results and synchronization. You can filter objects by type, name, or other criteria.
With Object Filter, you can:

Object Filter opens automatically after you run a schema comparison.
If Object Filter is hidden, you can open it in one of these ways:
On the Comparison toolbar, click
.
Right-click the schema comparison grid and select Objects Filter.
Press Ctrl+L.
Note
Object Filter retains your filter selections even when hidden, and preserves them when you update or rerun a schema comparison.
Use the toolbar to create custom filters.

The table describes the toolbar buttons.
| Icon | Name | Description |
|---|---|---|
![]() |
Open an existing filter | Loads a previously saved custom filter. |
| Save | Saves the schema comparison object filter to a .scflt file, either by creating a new file or by updating the current filter file. | |
| Delete the current file | Deletes the current user-defined schema comparison object filter file. | |
![]() |
Closes Object Filter. |
Note
The
is unavailable for the Nothing Excluded and Custom* filters. The
button is unavailable only for the Nothing Excluded filter.
Warning
If you reload the same filter, the message
This filter has already been loaded. Overwrite?appears. Click Yes to confirm the operation. Click No to cancel.
The Filter box shows the available filters:
An asterisk (*) in the filter name indicates unsaved changes.
You can select a filter directly from the Filter box.

The Object Filter tree lists the database objects on the specified server. Objects appear in alphabetical order.

By default, all object types are included in the comparison results and synchronization.
To include an object type, select the checkbox for the corresponding type, or click its name.
To include all object types, select the All object types checkbox, or click its name.
To exclude an object type, clear the checkbox for this type, or click its name.
To exclude all object types, clear the All object types checkbox, or click its name.
Note
Excluding an object or object type removes it from the comparison results and prevents it from being selected for synchronization.
Warning
If an object selected for synchronization references an excluded object, you can include the excluded object later on the Dependencies tab of the Schema Synchronization Wizard.
You can save the schema comparison object filter to an XML file with the .scflt file extension.
To save a filter:
1. On the Object Filter toolbar, click
, then select Save or Save As.
2. In the Save As dialog, specify the file name and select the folder to store the file.
3. Click Save.
The .scflt file stores all object types, their synchronization status (True for included, False for excluded), and any associated filter rules.

Warning
Switching to another filter or closing Object Filter discards any unsaved changes, so save your changes before performing these actions.
In the Filter Editor, you can create:
1. In the Object Filter tree, click
for an object type to open the Filter Editor dialog.
2. In Filter rule for, select the object type to which the filter applies, or select All object types to apply the filter to all objects.
3. Select Include objects if (default) to include objects that meet the condition, or select Exclude objects if to exclude objects that meet the condition.
4. To add a condition, click
.
5. Click the Source Object placeholder and choose the item. They are Operation, Source Object, Target Object, Source Owner, Target Owner, Status, and Type.
6. Click the operator placeholder (default: =) and choose the filter operator for the condition, for example, =, <, <>.
7. Click the value placeholder and choose the value from the list.
8. Click OK to save the changes.

In the Filter Editor dialog, click the logical operator placeholder, then choose the operator.

The table describes the logical operators supported in the editor.
| Name | Description |
|---|---|
| And | Includes or excludes objects when all conditions are true. |
| Or | Includes or excludes objects when at least one condition is true. |
| Not And and Not Or | Reverses the logic of the specified conditions. |
To remove a condition or a condition group, do one of the following:
Click
for the required condition.
Press the Minus Sign key.
To remove a condition group, click
for the required condition group.
Note
Pressing the Minus Sign key removes only one filter rule in the group.
To clear all conditions and revert the editor to its default state, in the Filter Editor, click Reset.
To close the dialog without saving changes, click Cancel.
1. In the Object Filter tree, hover over the object whose filter rule you want to remove.
2. Click Clear Filter.

You can filter objects from the command line using the following switch:
/filter:<filepath>
where <filepath> is the path to the file that stores the filter.
To compare objects with the applied filter, use the following command but replace the settings with your actual data:
"C:\Program Files\Devart\dbForge Studio for SQL Server\dbforgesql.com" /schemacompare /compfile:"D:\SchemaComparison\BikeStores (development) vs. BikeStores (production).scomp" /filter:"D:\CustomFilter.scflt"
where:
/compfile:"D:\SchemaComparison\BikeStores (development) vs. BikeStores (production).scomp" – Loads the settings from the schema comparison project file (.scomp)./filter:"D:\CustomFilter.scflt" – Applies a custom filter to exclude in or exclude from comparison.To compare and synchronize objects with the applied filter, use the following command but replace the settings with your actual data:
"C:\Program Files\Devart\dbForge Studio for SQL Server\dbforgesql.com" /schemacompare /compfile:"D:\SchemaComparison\BikeStores (development) vs. BikeStores (production).scomp" /filter:"D:\CustomFilter.scflt" /sync:"D:\BikeStores (development) vs. BikeStores (production).sql"
where:
/sync:"D:\BikeStores (development) vs. BikeStores (production).sql" – Specifies the path to the database synchronization script file.For more information about command-line options, see Additional schema compare arguments.