SQL Compare - 10.0
Using filters - SQL Compare
You can use filters to define which objects are displayed in the upper (Results) pane. For example, you may be interested in only tables, or in only some of the stored procedures owned by a specific schema. You can set up a filter to show you only the objects matching these conditions.
You can set up a filter for object types, and edit the filter rules to restrict which specific objects are included in or excluded from the upper pane.
The default filter is Nothing Excluded. If you edit this filter, Custom* is shown in the Filter box. An asterisk is displayed next to the name of any filter you edit, to show that there are unsaved changes.
You can save your filters for use in multiple projects. To choose a different filter, in the Filter box select the filter you want to use; if the filter is not listed, select Open filter from file and browse to the filter.
Filter rules
You can define which object types the filter includes in the comparison results using the object type check boxes in the Filter pane.
You can also create rules to control the specific objects that a filter includes or excludes. To edit the filter rules:
When you create a filter rule, its conditions are displayed under the name of any object types it applies to.
To edit the filter rule for an object type, move the mouse pointer over it and click the
(Edit) button that becomes available:
To clear the filter rule for an object type, move the mouse pointer over it and click the
(Clear) button that becomes available.
You can clear all current filter rules by selecting the filter Nothing Excluded from the Filter box.
Saving and deleting filters
Saved filters are available in subsequent projects, and can be selected from the Filter box. Saved filters have the file extension .scpf
- To save the current filter, on the Filter pane, click
Save In the Save Filter dialog box, type the name for the filter.
When you save an edited filter, you can either save it with the same name to overwrite it, or change the name to create a new filter.
- To delete the current filter, on the Filter pane, click
Delete You will be prompted to confirm. When you delete the current filter, Custom* is shown in the Filter box, and the conditions for the filter you just deleted remain set until you select another filter or make any changes.
Note that any unsaved changes to a filter are lost when you select another filter.
Filters and Find
A filter defines which objects are displayed in the upper (Results) pane; using Find changes how those objects are grouped. So, if an object matches the term in the Find box, and is excluded by a filter, it is not displayed in the upper pane.
Find groups results by whether they match or do not match the term typed in the Find box. Objects not matching the find term are still displayed in the upper pane, although this group is shown as collapsed by default.
Only objects displayed in the upper pane can be selected for deployment.
Example: excluding objects by type
If you want to view comparison results for only Tables and Views:
- On the Filter pane, select and clear the All object types included check box.
This ensures that no objects are displayed in the upper (Results) pane.
- Select the View and Table check boxes.
The filter is applied. Only tables and views are displayed in the upper pane.
Example: Excluding objects from a specific schema
If you want to view comparison results that exclude any objects owned by the schema Marketing:
- On the Filter pane, click the
Edit Filter Rules button.The Edit Filter Rules dialog box is displayed.
- In the For box, ensure that All object types in all schemas is selected.
- In the
box, select Exclude if. - Under Property, select Schema name.
- Under Operator, select Equals.
- Under Value, type Marketing.
- Click OK.
The filter is applied. No objects owned by the schema Marketing are displayed in the upper pane.
Example: including only those tables with a specific name or a particular owner
If you want to view comparison results for all the tables that have names beginning with Marketing, as well as all those owned by the schema Marketing, regardless of their names:
- On the Filter pane, select and clear the All object types included check box.
This ensures that no objects are displayed in the upper pane.
- Click the
button for Table.The Edit Filter Rule dialog box is displayed.
- In the
box, select Include if. - Under Property, select Object name.
- Under Operator, select Begins with.
- Under Value, type Marketing.
- Click

A new OR condition becomes available.
- Under Property, select Schema name.
- Under Operator, select Equals.
- Under Value, type Marketing.
- Click OK.
The filter is applied. Only objects owned by the schema Marketing, or with names that begin with Marketing are displayed in the upper pane.
Filters and deployment
The current filter affects which objects you can select for deployment:
- When you use the filter to exclude an object or object type, it is removed from the upper pane and cannot be selected for deployment.
- If you select an object for deployment and later set up a filter that excludes it, the object is not deployed.
Objects excluded by the filter are only included in the deployment as dependencies. If an excluded object is referenced by an object you selected for deployment, you will be notified of this dependency, and can choose to deploy the affected object on the Review Dependencies page of the Deployment wizard.
See also |
Was this article helpful?
SQL Compare
- Logging and log files
- Stored Procedures and Functions created with wrong name
- Synchronization scripts may be in incorrect version of SQL syntax
- Extended properties not permitted error (version 5.2)
- CLR Procedures' permissions are not recreated (version 5)
- Support for 'returns NULL on NULL Input' in CLR functions (version 5)
- Project files (scp files) suddenly appear on desktop (version 5)
- Stored procedures using full-text queries fail to synchronize
- When does the synchronization process rebuild tables?
- Unable to begin a distributed transaction error synchronizing databases
- User or role already exists in the current database error
- Clarification on the "Ignore Triggers" option in the SQL Compare command-line version
- Common table expressions returned by User Defined Functions may fail
- Can't compare encrypted text in SQL Server 2005, 2008
- Exception when connecting to SQL Server (Version 6)
- SQL comparison and synchronization automation capabilities
- Error logging in SQL Compare 6.2
- Using Team Foundation Server source control system
- Creating a SQL 2000 compatible database from a SQL 2005 database using SQL Compare
- Support for numbered stored procedures
- SQL Compare 7 Object-level restore
- Index was outside the bounds of the array error when registering databases X64
- HTML reports are generated for identical comparisons
- Comparison may seem slower than necessary
- DEFAULT_SCHEMA clause cannot be used with a Windows group
- SQL Compare may drop and create CLR assemblies
- SDK activation prompt may appear when starting a new SQL Compare project
- Column does not allow nulls. INSERT fails
- This SQL Server has been optimized for x concurrent queries.
- SQL Compare comparison differences
- Using SQL Server Management Studio Express as a query editor
- How to force SQL Compare and SQL Data Compare to use an Encrypted Connection
- Invalid SQL when synchronizing an index to a scripts folder when data compression is specified
- Tips
- Changes to distribution of command line
- Common error messages
- Copying the structure of a database
- Permissions required to use SQL Compare
- Rollback on script failure or cancellation
- Errors in scripts folders
- Logging and log files
all SQL products
- Compatibility of Red Gate tools in 64-bit environments
- Application has encountered an error and needs to close
- Error message after installing SQL Toolbelt - The description for Event ID ( 1 ) in Source ( nview_info ) cannot be found.
- Changing the temporary directory used by the installer
- Toolbelt Installer "hanging" while "scanning volumes"
- Login failing with "trusted SQL Server connection" error when using RunAs
all products
- Some Red Gate products identified as containing a trojan by Anti-Virus software
- Activation may fail with Unknown Error -1
- Product uses web help although a CHM file is available locally
- Argument exception resulting from missing environment variable
- Check for updates may fail when used through proxies
- 'Unidentified Publisher' error when repairing or uninstalling
- Licensing activates product as standard edition
- Moving Red Gate software products to another machine
- Red Gate tools log locations
- The application UI opening slowly when there is no internet access
SQL Compare
- Activating your products
- Activating your products
- Getting help offline
- Release notes - version 9.5 EAP
- Introducing SQL Compare 8: FAQs for SQL Compare 7 users
- Release notes - version 10.xx
- SQL Compare release notes - version 9.xx
all SQL products
all products
- Red Gate product acknowledgements
- Activating your products
- Activating your products
- Red Gate bundle history
- Check for updates
- Troubleshooting Check for Updates errors
- Current versions
- Deactivating your products
- Installing Red Gate products from the .msi file
- Requesting additional activations
- Serial numbers for bundles
- Reactivating using a different serial number
- Extending your trial
- Finding your serial numbers
- Moving a serial number from one computer to another
- No response received for manual activation
- Licensing and activation resources
- Licensing and activation resources
- Troubleshooting licensing and activation errors
- Licensing and activation FAQs
- Red Gate tools log file locations
- Download old versions of products
- Download product prerequisites & utilities
- Support & upgrades
- Upgrading your software
- Upgrading FAQs



Using SQL Compare