I get this error when trying to connect to my database using SQL Management Studio 2008. "The server principal "username" is not able to access the database "some_database_name" under the current security context. (Microsoft SQL Server, Error: 916)"

This error can be encountered when connecting to either SQL 2005 or SQL 2008 databases using SQL 2008 Management Studio.

As you may notice, the error message indicates a problem connecting to a database that you do not own. This is caused by SQL 2008 Management Studio attempting to query certain system settings that customers do not have access to.

To resolve this issue do the following:

1. Open SQL Management Studio 2008 on your local Computer
2. In the Object Explorer, click "Databases"
3. Select View >>> Object Explorer Details
4. Right click on the column headers

5. And UNcheck the Following Items:

-Size (MB)
-Database Space Used (KB)
-Index Space Used (KB)
-Space Available (KB)
-Default File Group
-Mail Host
-Collation

6. Right click on Databases and select Refresh

Was this answer helpful?

 Print this Article

Also Read

What is the port that SQL Server clients (Enterprise Manager, Query Analyser, etc) use?

SQL Clients (Enterprise Manager, Query Analyser, etc) use TCP port 1433. If you cannot connect to...

How do I connect to SQL Server using Visual Studio .NET?

  SUMMARYVisual Studio .NET 2002 includes a built in database management tool (similar to...

How can I migrate my data from MySQL to SQL Server?

Microsoft TechNet has an article specificaly for migrating MySQL databases to SQL Server. Follow...

I get \"SQL Server does not exist or access is denied\" error when I tried to connect to MS SQL database on your server?

  This error indicates that Enterprise Manager cannot make a connection the remote SQL...

How can I reduce my Database size Buy Truncating and Shrinking it?

For each transaction, the database create a log file, by over time, the high volume of database...