Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server Management Studio Schema View

I'm working with a SQL server and several databases. Each database may have many schema's, such as dbo., admin., other., and I'm getting tired of scrolling around trying to find things.

If I'm working on a schema specific project, I want to filter out everything else from my view except that schema. As dbo, I see everything which means I spend the majority of my day molesting my scroll wheel (that is a joke).

Is this possible in SQL Server Management Studio 2008?

like image 420
Billy Coover Avatar asked Feb 25 '10 19:02

Billy Coover


2 Answers

In SSMS 2005 or 2008, right click on the heading: "Stored Procedures", "Tables", etc, then on "Filter Settings", then for the "Schema" change "Operator" to "Does not contain" or "Contains", etc and then set a Value to filter them...

like image 106
KM. Avatar answered Oct 13 '22 20:10

KM.


Yes: don't connect as db_owner or "sa".

Connect as a user that can access and change the desired schema only.

This way, the engine "Metadata visibility" will do it automatically

like image 41
gbn Avatar answered Oct 13 '22 18:10

gbn