You are here: Re: MS Sqlserver 2005: Displaying only dbs user has a right to? « MsSQL Server « IT news, forums, messages
Re: MS Sqlserver 2005: Displaying only dbs user has a right to?

Posted by Erland Sommarskog on 04/26/07 22:09

Steve (tinker123@gmail.com) writes:
> My company just installed MS SQLServer 2005 ( see below the dotted
> line ).
>
> When a user logs into management studio all of the databases on the
> server are displayed in the right hand column.
>
> What can we do to have only the databases the user has rights to,
> display?

What you can do is to revoke the permission VIEW ANY DATABASE from public,
or DENY this permission to the users in question. Alas, the user would then only see tempdb and msdb (or was it master?), databases he owns, and
possibly his current database. He would have to issue a USE database in
the dark to get there.

This is not an uncommon question, so I filed a suggestion for an improvement
in SQL Server. You can vote on it at
https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=273830


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация