2

In SQL Server Object Explorer in Visual Studio I have tried to remove my old training databases, created during my entity framework entertainment.

To do so I tried to just delete them by "right-click" and "delete",

but I get message:

Could not retrieve database access level for database

After creating new query "DROP DATABASE ...;"

I receive answer

Cannot drop the database '...', because it does not exist or you do not have permission.

Any other way to remove it, or just getting permission?

1
  • are you logged in as a sql server admin? Commented Oct 19, 2016 at 8:36

1 Answer 1

3

This is the solution :

  1. Close your solution.

  2. Then exit from the Visual studio.

  3. After that reopen your project with new instance of Visual studio.

Hope all are fine then :)

Sign up to request clarification or add additional context in comments.

2 Comments

Miracle! Despite refusing dropping operation by Visual Studio, It actually got performed after restarting visual studio! <br/>
Hehee... :D Restart is an invaluable weapon on Microsoft products :D

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.