[database] property may not exist for or due insufficient access rights

Sometimes you run into really annoying things and this was one of them.
When right clicking a database in SQL server lead to an error:

“[database] property may not exist for or due insufficient access rights”

When searching the internet I found a nice solution which i tried.

USE [DATABASE]
EXEC sp_changedbowner '[hostname]\ Administrator'

An yet again SQL Server figured a way to irritate me with an other error.

Error : Msg 15110, Level 16, State 1, Procedure sp_changedbowner, Line 46
The proposed new database owner is already a user in the database

The problem could be resolved by first dropping the user on that user and then add it again.
After that all works fine again.

USE [DATABASE]
EXEC sp_dropuser '[hostname]\ Administrator'
EXEC sp_changedbowner '[hostname]\ Administrator'

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>