<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>FAQ: How do I prevent users from seeing DBs in Enterprise Manager/SSMS that they don't have rights to?</title><link>http://blogs.msdn.com/b/euanga/archive/2006/05/04/585513.aspx</link><description>I was at the Microsoft Hosting Summit last week, meeting with both Service Providers and our internal Hosting Evangelists. One of the most common questions that comes up in these particular environments is how to hide DBs that users do not have access</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>case when pl sql</title><link>http://blogs.msdn.com/b/euanga/archive/2006/05/04/585513.aspx#8722159</link><pubDate>Sat, 12 Jul 2008 02:07:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8722159</guid><dc:creator>case when pl sql</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://darren.onlineshoppingvidsworld.info/casewhenplsql.html"&gt;http://darren.onlineshoppingvidsworld.info/casewhenplsql.html&lt;/a&gt;&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8722159" width="1" height="1"&gt;</description></item><item><title>re: FAQ: How do I prevent users from seeing DBs in Enterprise Manager/SSMS that they don't have rights to?</title><link>http://blogs.msdn.com/b/euanga/archive/2006/05/04/585513.aspx#1224860</link><pubDate>Wed, 06 Dec 2006 22:41:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1224860</guid><dc:creator>kevin.bailey</dc:creator><description>&lt;p&gt;The way around getting foo to show up after the deny view any database to login2 is:&lt;/p&gt;
&lt;p&gt; &amp;nbsp;1) &amp;nbsp;log in as sa and delete the database foo.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;2) &amp;nbsp;while logged in as sa, grant user login2 create database permission.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;3) &amp;nbsp;Grant all permissions to master and tempdb to user login2.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;4) &amp;nbsp;log out of sa.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;5) &amp;nbsp;log in as login2 user.&lt;/p&gt;
&lt;p&gt; &amp;nbsp;6) &amp;nbsp;create table foo while logged in as login2 and set login2 as table owner.&lt;/p&gt;
&lt;p&gt;Now foo will show up as the only database, except master and tempdb (which you want anyway).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1224860" width="1" height="1"&gt;</description></item><item><title>re: FAQ: How do I prevent users from seeing DBs in Enterprise Manager/SSMS that they don't have rights to?</title><link>http://blogs.msdn.com/b/euanga/archive/2006/05/04/585513.aspx#632723</link><pubDate>Thu, 15 Jun 2006 23:09:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:632723</guid><dc:creator>Darshan Singh</dc:creator><description>SQL Server 9.0.2047&lt;br&gt;&lt;br&gt;The database 'foo' shows up for login2 when execution context is changed using EXECUTE AS. However, if you login to Query Window or Object Explorer using login2, the database 'foo' does not show up. &lt;br&gt;&lt;br&gt;After granting VIEW DEFINITION to user2, if you connect to Query Window or Object Explorer using login2, database foo does not show up.&lt;br&gt;&lt;br&gt;When connected to query window using login2, initially the database foo does not show up in Available Databases list. But &amp;quot;use foo&amp;quot; works, and database then shows up in Available Databases combo on top. And then sys.databases returns 'foo'.&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=632723" width="1" height="1"&gt;</description></item><item><title>TIP - How do I prevent users from seeing DBs in Enterprise Manager/SSMS that they don't have rights to?</title><link>http://blogs.msdn.com/b/euanga/archive/2006/05/04/585513.aspx#609062</link><pubDate>Sun, 28 May 2006 07:24:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:609062</guid><dc:creator>SQL, .NET and everything Microsoft</dc:creator><description>I came across this excellent blog by Euan Garden, who is a Group Program Manager at Microsoft.&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://blogs.msdn.com/euanga/archive/2006/05/04/585513.aspx"&gt;http://blogs.msdn.com/euanga/archive/2006/05/04/585513.aspx&lt;/a&gt;...&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=609062" width="1" height="1"&gt;</description></item><item><title>Euan Garden - FAQ: How do I prevent users from seeing DBs in Enterprise Manager/SSMS that they don't have rights to? </title><link>http://blogs.msdn.com/b/euanga/archive/2006/05/04/585513.aspx#594767</link><pubDate>Wed, 10 May 2006 21:49:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:594767</guid><dc:creator>Professional Association for SQL Server (PASS) SIG</dc:creator><description>&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=594767" width="1" height="1"&gt;</description></item><item><title>re: FAQ: How do I prevent users from seeing DBs in Enterprise Manager/SSMS that they don't have rights to?</title><link>http://blogs.msdn.com/b/euanga/archive/2006/05/04/585513.aspx#590615</link><pubDate>Fri, 05 May 2006 11:46:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:590615</guid><dc:creator>Sivashankar</dc:creator><description>Its realy a fantastic work....!!!!!!!&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=590615" width="1" height="1"&gt;</description></item></channel></rss>