Re: Allow users to only see their mapped DBs
- From: "Uri Dimant" <urid@xxxxxxxxxxx>
- Date: Sun, 22 Jun 2008 08:30:11 +0300
Rob
See if that helps you, but I agree with Erland that currently it is not
possible
This works perfectly if the user is the owner of the database. Look
that ?
? Create a new SQL login "login1"
? Create a user named ?login1? in master database
? Grant CREATE DATABASE to login1
? While impersonating login1, create a database called ?dbtest?
? Revoke CREATE DATABASE permission from login1
? Revoke VIEW ANY DATABASE permission from PUBLIC
? Register this server as login1
? From the ?login1? session, expand database tree. Now, you should see
master, tempdb, dbtest
? Grant VIEW ANY DATABASE to PUBLIC
? From the ?login1? session, you should see all the databases
"Rob" <Rob@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D448C3BB-551E-4D98-9FDD-62EF7D8E94A3@xxxxxxxxxxxxxxxx
Hello:
How can I can allow my users to only see the DBs their user ID has been
mapped to when they open up SSMS? When they open up SSMS today, they can
see
all the DBs; I want to restrict their view to only the DBs that their ID
is
mapped to.
TIA.
.
- References:
- Allow users to only see their mapped DBs
- From: Rob
- Allow users to only see their mapped DBs
- Prev by Date: Re: Allow users to only see their mapped DBs
- Next by Date: Server roles
- Previous by thread: Re: Allow users to only see their mapped DBs
- Next by thread: Grant v Deny
- Index(es):
Relevant Pages
|