SQL Server Management Studio Schema View

自闭症网瘾萝莉.ら 提交于 2019-12-08 17:03:53

问题


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?


回答1:


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...




回答2:


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




回答3:


FYI, I was searching for tables under cdc schema, the change data capture schema that was created. After much struggle, I found that those tables are in the Tables->System Tables folder. So SSMS did show the non default schema but in this case it was in a different folder.



来源:https://stackoverflow.com/questions/2337164/sql-server-management-studio-schema-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!