在 Management Studio 中隐藏 SQL 数据库 [英] Hide SQL database from Management Studio

查看:31
本文介绍了在 Management Studio 中隐藏 SQL 数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在登录SQL Server 2005/2008 时隐藏您没有访问权限的数据库?

How can you hide databases you do not have access rights to when logging into SQL Server 2005 / 2008?

目前,如果用户连接,他们会看到服务器上的所有数据库,这意味着他们必须扫描列表才能找到他们的数据库.

Currently if a user connects, they see all the databases on the server, meaning they have to scan though the list to find their database.

推荐答案

您需要从角色 PUBLIC(SQL SERVER 2005 及更高版本)中撤销VIEW ANY DATABASE"权限

You would need to revoke the permission 'VIEW ANY DATABASE' from the role PUBLIC (SQL SERVER 2005 onwards)

这篇关于在 Management Studio 中隐藏 SQL 数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆