Category Archives: MSSQL Server

[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.

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.

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

Reattach user to database

After a backup restore in SQL Server a user can get disconnected from the database.
When you try to restore this you get the error “User, Group or Role ‘<username>’ already exists in the current database”. This problem can be fixed by running the following stored procedure.

EXEC sp_change_users_login 'Auto_Fix', '<username>', NULL