To filter objects in SSMS, right-click a folder in Object Explorer, such as Tables or Logins, select Filter then Filter Settings, enter your criteria and click OK. Object Explorer then lists only the matching objects in that folder until you remove the filter.
When working with large databases with a lot of objects, finding a specific table, view or login by scrolling through the list can take a while. The filter lets you narrow the list by name, schema or creation date. The Object Explorer Details pane can do something similar, but for finding one object the filter is often quicker.
Steps to Filter Objects in SSMS
While the example demonstrates filtering SQL logins, the process is the same for other folders such as tables, views and stored procedures.
1. Open Object Explorer and expand the folder your object is in.
2. Right-click Logins and select Filter > Filter Settings. You can also select the folder and use the filter button on the Object Explorer toolbar.

3. Set your criteria in the Filter Settings window. Microsoft’s Manage Objects Using Object Explorer page lists filtering by name, creation date or schema where the folder has them, with operators including Starts with, Contains and Between. Click OK and Object Explorer shows only the objects that match.

4. You should now see your filtered object(s) in Object Explorer.

5. To remove the filter, right-click the folder again and select Filter > Remove Filter.
The Filter Sticks Until You Remove It
The trap with Object Explorer filters is not applying them, it is forgetting them. A filtered folder stays filtered until you remove the filter, and the only visual clue is (filtered) added to the folder name, as in the Logins (filtered) screenshot above. Miss that label and it looks like a real problem: tables seem to be missing, or a login you created a minute ago is nowhere to be seen. If objects ever seem to have vanished from Object Explorer, check the folder name before anything else. Remove Filter puts everything back, as does Clear Filter then OK in the Filter Settings window.
What the Filter Can and Cannot Match
Each row in Filter Settings is one property with an operator and a value, such as Name with Contains, or Creation Date with Equals. That covers the common cases, but know the limits before relying on it:
- One condition per property. There is one Name row, so you cannot ask for names matching either of two patterns. That means filtering twice or going to T-SQL.
- One folder at a time. The filter applies only to the folder you set it on. Filtering Tables does nothing to Views, and a filter set in one database does not follow you to the next one.
When the Filter Is Not Enough, Use T-SQL
The filter only changes what Object Explorer shows you. When you want the list itself, to copy or to check across many objects, the catalog views give you the same answer with LIKE. This finds the backup history tables in msdb:
-- Tables whose name starts with 'backup' USE msdb; SELECT SCHEMA_NAME(schema_id) AS schema_name, name, create_date FROM sys.tables WHERE name LIKE 'backup%' ORDER BY name;
On my SQL Server 2025 lab instance it returns five tables: backupfile, backupfilegroup, backupmediafamily, backupmediaset and backupset. For logins, the equivalent is sys.server_principals:
-- Logins with 'agent' in the name SELECT name, type_desc, create_date FROM sys.server_principals WHERE name LIKE '%agent%' ORDER BY name;
Swap sys.tables for sys.views, sys.procedures or sys.objects to search other object types the same way; sys.objects includes a type_desc column that tells you which kind each match is. If a lookup like this is something you run all day, SSMS can bind it to a keyboard shortcut, which I covered on sqldba.blog in SSMS Query Shortcuts. More of my current SSMS writing is in the SSMS Complete Guide.
One More Option: Object Explorer Details
The Object Explorer Details pane is the middle ground between filtering and writing a query. Press F7 (or View > Object Explorer Details) and it lists the contents of the node selected in Object Explorer, with a search box on its toolbar. Microsoft notes that each search is scoped to the current focus in the Object Explorer tree and accepts wildcards such as dm_os%counters, so searching from the Databases node covers every database. That makes it the better tool when you do not know whether the thing you are hunting is a table, a view or a procedure.
Leave a Reply