SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Databases don't show in SSMS Object Exlorer


Databases don't show in SSMS Object Exlorer

Author
Message
bmcgee26
bmcgee26
SSC Rookie
SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)

Group: General Forum Members
Points: 28 Visits: 15
I have created a new login with read access to 2 databases.
The user reported he could login to the instance suing SSMS but not see either of the databases in Object Explorer.
He could only see system databases and database snapshots.
I checked his permissions and they looked ok.
The login was integrated authentication. Just as a trial I created another user for him as a SQL Server Login but he had the same issue.
If he launches a new query window he can Use Database and then run SQL queries against both the databases I granted access to.
So it looks like the problem is confined to SSMS.

I don't know if this is a bug or if there is some configuration setting I am missing.

Picture below of what can be seen in object explorer.


Sue_H
Sue_H
SSC Guru
SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)SSC Guru (67K reputation)

Group: General Forum Members
Points: 67090 Visits: 13928
bmcgee26 - Wednesday, February 7, 2018 5:42 AM
I have created a new login with read access to 2 databases.
The user reported he could login to the instance suing SSMS but not see either of the databases in Object Explorer.
He could only see system databases and database snapshots.
I checked his permissions and they looked ok.
The login was integrated authentication. Just as a trial I created another user for him as a SQL Server Login but he had the same issue.
If he launches a new query window he can Use Database and then run SQL queries against both the databases I granted access to.
So it looks like the problem is confined to SSMS.

I don't know if this is a bug or if there is some configuration setting I am missing.

Picture below of what can be seen in object explorer.



Were any changes made for public? By default it has view server state. If it's been changed, by default users will not see the databases. You can check with:
SELECT 
l.name as Account,
p.state_desc,
p.permission_name
FROM sys.server_permissions as p
INNER JOIN sys.server_principals as l
ON p.grantee_principal_id = l.principal_id
WHERE permission_name = 'VIEW ANY DATABASE'


Sue



bmcgee26
bmcgee26
SSC Rookie
SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)

Group: General Forum Members
Points: 28 Visits: 15
Thanks!, that was it exactly.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search