Hide SQL DB's Users do Not have Access to

rr-4098 2,351 Reputation points
2024-04-10T15:43:00.6166667+00:00

I know I can set the permission to Deny "View all DB's" but I need users who are mapped to their DB's to be able to see them in SSMS. Thoughts?

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


8 answers

Sort by: Oldest
  1. rr-4098 2,351 Reputation points
    2024-04-11T18:18:17.6533333+00:00

    Thank you for the feedback. I did the same steps as you. The user can only access the DB they have access to and get errors on the other DB's. The problem is we do not want to user the "see" the other DB's. Please note, when I deny "view all db's" they can still query the DB, but need to see it since they are not sure of all the table names.

    Was this answer helpful?


  2. rr-4098 2,351 Reputation points
    2024-04-12T14:23:02.38+00:00

    If a user is now a owner of a DB, doesn't this mean they have full rights to the DB? If this is the case this will be a problem.

    Was this answer helpful?


  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.