Reputation: 882
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?
Upvotes: 2
Views: 671
Reputation: 65860
This is the solution :
Close your solution.
Then exit from the Visual studio.
After that reopen your project with new instance of Visual studio.
Hope all are fine then :)
Upvotes: 3