May 14, 2010 at 2:36 am
Hi Friends,
I am having 3 database called
1>Finance1
2>Finance2
3>Finance3
Having a user called Support,
I am given DBreader permissions on Finance1 Database,
But when this user logins ,
he can able to see all databases in the server.Although He able to access Only one
1>Finance1 Database only
My Question is
Only Finance1 should be visible when he logins , How do this?
Thanks for u r help
May 14, 2010 at 7:59 am
you have end users logging into your Server using SSMS?
anyway, I'm thinking because CONNECT rights give them read access to the master database, and sys.databases has the list of databases, they can see them; i'm researching it now, this is kind of interesting.
I have a couple of accounts on some shared hosting websites, and there i can also see the hundreds of databases on the shared SQL Server, but i can access only one of them; not sure if it's a real issue, that he can find out the name of a database.
Lowell
May 14, 2010 at 8:21 am
from msdn:
http://msdn.microsoft.com/en-us/library/ms189077.aspx
By default, the VIEW ANY DATABASE permission is granted to the public role. Therefore, by default, every user that connects to an instance of SQL Server can see all databases in the instance. To verify this behavior, run the following query:
so if you DENY VIEW ANY DATABASE TO <yourlogin>, they cannot see any database in SSMS Object Explorer except master and tempdb...even if they've been granted access to, say, the SandBox database, even if he's made the database owner.
still trying to get my sample user to see any databases he has access to, not working yet...............
Lowell
May 21, 2010 at 8:16 am
Lowell (5/14/2010)
you have end users logging into your Server using SSMS?
Just a little real world confirmation: our customer's DB ist hosted by a BIG provider and we have remote access
for Debugging via SSMS. On the same instance we can see the DB of other HUGE companies.
So: - despite that I wonder why the instance is shared - it doesn't seem to be trivial to make the DB invisible...
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply