I get "The server principal "username" is not able to access the database "databasename" under the current security context. (Microsoft SQL Server, Error: 916) " after I tried to login via MS SQL Management Studio?

To fix this SQL Server Management Studio 2008 bug please do the following:

  1. Open SQL Server Management Studio 2008
  2. Connect to the database server as normal
  3. Press F7 to open the "Object Explorer Details" window or click "View" >> "Object Explorer Details"
  4. In the object explorer details window expand by double click on "Databases"
  5. Right click on the header bar ("Name", "Policy health state", "Recovery Model", etc) and deselect "Collation" from the menu that will pop up
  6. From the object explorer, refresh the "Databases"

Помог ли вам данный ответ?

 Распечатать статью

Также читают

I am able to view and access a SQL database other than my own while connected with Enterprise Manager, Query Analyzer, or the SQL Web admin. What is wrong?

This happens because the customer has added Guest Access/Public to their SQL...

How can i generate scripts for MS SQL Database?

Your default database user don't have privillages to do that You can just create a support...

How to connect to SQL Server 2000 using Query Analyser?

...

How to use SQL Management Studio Express 2005?

Open your SQL Management Studio Express 2005 on your local machine.Step 1) Type the ServerName:...

How do I access SQL Server 2008 Database using SQL Server Management Studio?

Please follow the steps listed below in order to access or connect your SQL 2008 database using...