Learn more about Toad for SQL Server
at Dell Software

Find solutions and downloads at the
Toad for SQL Server Support Portal

Toad for SQL Server 6.6

You are here: Manage Databases > Filter Databases and Objects

Filter Databases and Objects

Toad allows you to filter the list of databases or objects that display in the Object Explorer. You can use filters to reduce the number of databases and/or objects to work with.

Types of Filters

You can create a Quick filter by entering a search string in the object filter field. You can also use the Filter dialog (click ) to choose additional filter options. If you use the Filter dialog, you can also name and save your filter.

Filter Type Description Behavior
Quick (unnamed)

Can be used to quickly filter objects for a single connection or schema.

Create a Quick filter by entering a search string in the object filter field.

Applies to the current schema (or to objects in the current schema) only.

Once applied, a Quick filter is in effect on that connection when you reconnect or relaunch Toad.

Because Quick filters are not named, they cannot be applied to other connections by selecting from the filter list. You must recreate the Quick filter for each connection/schema.

Detailed (unnamed)

Use like a Quick filter, but add more detail by using the Filter dialog to enter filter criteria.

Use this method to create an unnamed database filter.

-- same behavior as a Quick filter --

Named Create and save named filters to reuse and to apply to other connections.

Once applied, a Named filter is in effect when you reconnect or relaunch Toad.

Note: If you rename a table that has a filter defined, it results in an orphaned filter. Orphaned filters are automatically removed unless you used a tool other than Toad to remove them.

Before Creating a Filter

A filter is associated with a specific list of objects from a specific database. Consider the following guidelines when setting filters:

Create Filters

To create a Quick filter (objects only)

To create a Detailed filter

  1. Click beside the database or object filter fields in the Database Explorer or Object Explorer.
  2. Specify criteria for the filter in the Properties tab. Review the following for additional information:

    Search String Enter a text string and search characters to use for filtering.
    Search Condition

    Select a search type to use in this filter.

    Note: You can set a default value for this field in Tools | Options | Explorer | General. If you don't specify a default value in Options, this field defaults to the search type you specified the last time you created or modified a filter (includes previous sessions).

    Tip: To include in your text string certain characters normally used in search logic, such as the underscore (_), use one of the following Search Conditions:

    • Contains (Exact)
    • Starts With (Exact)
    • End With (Exact)
  3. To create custom SQL, select the SQL tab and then select the Enable custom SQL option. Modify the existing SQL. (The existing SQL reflects the criteria you specified in the Properties tab).
  4. Select the Preview tab to review the list of databases or objects that are selected based on your filter criteria.

To create a Named filter

  1. Click and create a Detailed filter (see above).
  2. Enter a name for the filter and click . Creating a name for the filter allows you to use it on other database connections.

Creating a new Quick filter from a current filter

Use Filters

To use Named filters

Import/Export Filters

You can export all named filters and you can export all filters defined for the current connection.

Tip: Click in the Database Explorer (Viewer) toolbar to clear all database, object, and data filters.

 

Related Topics

Object Explorer

of