Re: Allow users to only see their mapped DBs



Rob (Rob@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
How can I can allow my users to only see the DBs their user ID has been
mapped to when they open up SSMS? When they open up SSMS today, they can
see all the DBs; I want to restrict their view to only the DBs that
their ID is mapped to.

That is not possible. You can revoke the VIEW ANY DATABASE permission,
but then users will only be able to see databases they own.

--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.



Relevant Pages

  • Re: Enter Todays Date in SSMS Open Table Grid View
    ... If you don't want to consult your watch, you will have to write an INSERT ... Is there an SSMS ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.tools)
  • Re: View Columns do not show in Object Explorer
    ... up in SSMS, and that's where Object Explorer lives. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.tools)
  • Re: SSMS Query Editor... Vs Query Analyser
    ... > close SSMS. ... > I'm just venting my frustration with the SQL 2005 tools. ... >> Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... >> Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.tools)
  • Re: Creating new user default to DB_owner role
    ... Removing the db_owner role during creation of the user causes SSMS to ... fail with an error because it tries to remove the user that is being ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.security)
  • Re: I wonder at the difference in the name patterns
    ... Two DBs are named like: ... I:\MY DOCUMENTS\VISUAL STUDIO ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.programming)