SQL Server Management Studio Multiple Filters in Object Explorer?

Is there really no add in or functionality that will allow you to have multiple filters in Management Studio Object Explorer? Mainly tables. I want to see all tables that begin with or contain XXX and all that have YYY.

Is it really hard?
mike1142Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
If your question is 'how can I display in SSMS, treeview on the left side, Tables, only tables based on a custom filtering of my choice', then the answer is no, SSMS currently does not have that functionality.

Spell out for us why you're asking this, and perhaps we can give you a workaround.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mike1142Author Commented:
I have a query in an 8000 table database. I am trying to tune the query. I would like to look at the indexes that are on several of the tables. There is no commonality amongst all of the tables in the query that would work for the filtering function. Excel for instance has a text filter that allows at least 2 filters. Outlook has an advanced filter function to add basically unlimited filters though I find it clumsy.

It's not as simple as just the indexes though. It's helpful to have all of the features of object explorer available , filtered to just the tables I need. I am reasonable though one or two extra I could live with.
0
Anthony PerkinsCommented:
This is why you should not be using the GUI for this.  Instead I would suggest you use a system view. as in:
SELECT *
FROM sys.tables
WHERE name like 'yourfiltergoeshere'

A better approach is to design your tables using schemas, but I suspect it is too late for that.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

mike1142Author Commented:
Can you be more specific? Are there a set of queries/tables that will give me all the information I need?

I did not design the database so sorry about the schema thing.
0
Anthony PerkinsCommented:
Can you be more specific? Are there a set of queries/tables that will give me all the information I need?
Sorry I thought I was being specific.  for example, if you want to see all the tables that start with say "Doc" you would do something like this:
SELECT name
FROM sys.tables
WHERE name LIKE 'Doc%'
0
mike1142Author Commented:
And that gives you as much information as the GUI does?
0
Anthony PerkinsCommented:
Why don't you try it and tell me what you are missing?
0
mike1142Author Commented:
SELECT name
FROM sys.tables
WHERE name LIKE 'Doc%'

Gave me no records so I guess I am missing all of the tables, all of the indexes, all of the columns, all of the data types attached to the columns, all of the statistics, all of the keys, all of the constraints and all of the triggers..
0
Anthony PerkinsCommented:
Here was your original question:
I want to see all tables that begin with or contain XXX and all that have YYY.
If that is the case than the following query will return all the tables that match:
SELECT name
FROM sys.tables
WHERE name LIKE '%XXX%'  OR name '%YYY%
0
Anthony PerkinsCommented:
Gave me no records so I guess I am missing all of the tables,
It merely tells you that you do not have any tables that start with 'Doc%'
0
mike1142Author Commented:
Anthony, you are being obtuse. That was not the original question. I have contacted administration, they have seen your comments. I am closing out the question and will entertain no more discussion from you.
0
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
So for starters, I have dibs on 'No, you can't do that in SSMS' as the answer here.

>There is no commonality amongst all of the tables in the query that would work for the filtering function.
Please explain this statement in greater detail, as it seems to imply that even if there was a filtering function it wouldn't work too well for this purpose.

>Excel for instance has a text filter that allows at least 2 filters. Outlook has an advanced filter function to add basically unlimited filters though I find it clumsy.
Comparing an Office product to SQL Server SSMS is not a valid comparison.  Way different product teams.

Perhaps if you really need this, a better idea would be to restore a COPY of this database from a backup, with all the tables, then programmatically delete the ones you're not going to use until all that's left if what you want to work with.

or

Script out the objects you do want to work with into a Visual Studio 2012 / Database Project, and work out of that UI.
0
mike1142Author Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for mike1142's comment #a40327056

for the following reason:

because
0
mike1142Author Commented:
Thank you all for your time. I will seek other avenues of resolution.
0
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
The original answer of 'No, you can't do that' stands, which is a valid answer at Experts-Exchange when it is the correct one.

Anthony's suggestion of various SELECT clauses displays the tables, which is not all that you need as you still need indexes, relationships, etc., but as demonstrated it's not possible in SSMS, so in effect 'This is as close as you can get'.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.