Property Owner is not available for Database


Today I came across an error

Property Owner is not available for Database ‘[DBName]’. This property may not exist for this object, or may not be retrievable due to insufficient access rights.

 

Situation – You right-click on the database and choose properties. Now, instead of the database properties opening up, you get the message.

Cause – This issue can happen if the owner of the database is dropped from the Security Logins of the SQL Server.

Solution –

sp_changedbowner [ @loginame = ] ‘login’

Sample

use [YourDatabase]

GO

sp_changedbowner @loginame = ‘sa’

GO

Leave a comment