The server principal "DB" is not able to access the database "_ANTARES_WCF" under the current security context. (Microsoft SQL Server,

Error

Microsoft SQL Server, Error: 916

Many times developers connect remotely to their MS SQl Database using
SQL Server Management Studio. Sometimes when they connect the get the following error:

Problem:
The server principal "DB name" is not able to access the database "Another DB Name"
under the current security context. (Microsoft SQL Server, Error: 916)

Solution:

To fix this SQL Server Management Studio 2008 (maybe in 2005 too), 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"

:

Comments

Popular posts from this blog

ASP.NET website "Cannot read configuration file due to insufficient permissions" in IIS 7 and Windows Server 2008

Error occurred in deployment step 'Install app for SharePoint': The System Account cannot perform this action.

None of the selected features can be installed or upgraded. Setup cannot proceed since no