sql server security

  • Hi

    Can we restrict a user from viewing a database in sql server 2012?

  • Yes. The login by default is a member of the public server role, which by default is granted the VIEW ANY DATABASE server permission.

    If you don't want this to be the case, you can run an explicit deny against that login:-

    DENY VIEW ANY DATABASE TO [YourLogin].

    Following this, the login will only be able to see the master, tempdb databases along with any databases that the login owns.

    More reading:- http://msdn.microsoft.com/en-us/library/ms189077.aspx

    Follow me on twitter @EvoDBACheck out my blog Natural Selection DBA[/url]

  • Are you talking about not being able to see a database within the SSMS or not being able to view the contents of a database?

  • Yes,not being able to view the database in ssms

  • kkarthik117 (6/25/2013)


    Yes,not being able to view the database in ssms

    In that case, Matthew has hit the nail on the head with his answer.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply