You are here: Portal Home > Knowledgebase > Databases > The server principal is not able to access the database under the current security context
Please Login

The server principal is not able to access the database under the current security context

The server principal 'xxx' is not able to access the database 'yyy' under the current security context (Microsoft SQL Server, Error:916)

The issue:

This issue occurs with SQL Server 2008 Management Studio.  Can connect to database engine but cannot expand the ‘Databases’ node.  It would result in the error above.  The issue is with SQL Server Management Studio itself, not the database engine or any other aspect of SQL Server.

There are several work-a-rounds to correct this issue.

Work around #1:

1. Within SQL Server Management Studio, view Object Explorer Details window by selecting View, Object Explorer Details in menu (or hitting F7)
2. Right-click on the column header 'Collation.', and deselect it.
3. Refresh the server in Object Explorer and enumerate the databases

Work around #2:

1. Within SQL Server Management Studio, view Object Explorer Details window by selecting View, Object Explorer Details in menu (or hitting F7)
2. In Object Explorer window click at Databases folder
3. In Object Explorer Details window right-click at the column header and select ‘Reset view’. 
4. Refresh Databases folder

Work around #3:

1. Check the database options for the “Auto Close” setting. If it is set to “True,” change it to “False” and test again.

Reason for error:

Collation for an offline database is returned as NULL by the engine, and SSMS currently interprets NULL values as a permissions issue.  The error will occur even if Object Explorer Details view is not open.  The same issue will occur if you try to enable a setting that you don't have permission to access on all databases, for example data space used.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
MySQL errno: 150 (Views: 1473)

Client Login

best hosting
Remember Me  

Search

uk web hosting

managed server
 
All Content © 2000-2012 Fast2host Limited. All Rights Reserved.
UK Company Registration Number: 05348700VAT Number: GB 884 9830 61 — BGP4 Network AS48825

Fast2host provides the best in hosting. Should you find that our services do not meet your specifications, we offer a full refund, providing your service cancellation is made within 30 days of opening your account. (The 30 day guarantee applies to Shared Hosting Solutions, for other solution guarantees please see 30 Day Money Back Guarantee.)

With the latest cloud VPS technology and infrastructure located in the UK, within our own datacenter, we can help your business thrive on the internet. Fast2host can setup and host sites whatever your hosting needs. Whether you're just establishing a presence on the internet, or you want to manage, maintain and monitor an eBusiness web hosting solution, we can help.

This is what makes Fast2host different, we provide a unique web hosting service for each client, including adult web hosting, providing close contact and support to create 100% satisfaction. We are here to help and support you throughout.

A dedicated server can be rebooted remotely. Cloud vps hosting allows you to reinstall OS instantly. Cpanel hosting you can restore files yourself. 100% White Label Reselling hosting you can make money today.