Home » Topic » how can i hide my database in SQL Server?

how can i hide my database in SQL Server?

Stephen West ~ Modified: September 24th, 2015 ~ ~ 1 Minute Reading

Home Forums how can i hide my database in SQL Server?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #731 Score: 0
    Stephen West
    Moderator
    4 pts

    I am working on SQL Server 2014 that has hundreds of databases. Is there a way to hide these databases?

    #744 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    Try to execute this:

    USE MASTER
    GO
    GRANT VIEW ANY DATABASE TO PUBLIC; -- turn this back on if it was off
    GO
    DENY VIEW ANY DATABASE TO USER_A;
    GO
    #757 Score: 0
    Lincoln Burrows
    Moderator
    16 pts

    can i hide all user database for all logins?

    #854 Score: 0
    Andrew Jackson
    Moderator
    1 pt

    Use below T-SQL for Deny to view databases

    REVOKE VIEW ANY DATABASE TO [Database1]
    go
    REVOKE VIEW ANY DATABASE TO [Database2]
    go
    
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.