How to fix "Property Owner is not available for Database 'YOURDBNAME'. This property may not exist for this object, or may not be retrievable due to insufficient access rights."

A user had created a database on an SQl server, then when that user left the company,there account was removed from the system, leaving the database with no owner!

When you right click on the database to get the properties, you get the following error:

Cannot show requested dialog.

Additional information:

Cannot show requested dialog. (SqlMgmt)

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

(Microsoft.SqlServer.Smo)

 The way to fix this is to assign a new owner by running the following query:

use    YOURDATABASENAME

 

 

EXEC    sp_changedbowner “YOUR USERNAME”

 

Leave a Reply

Your email address will not be published. Required fields are marked *

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