This error
sometimes appear while opening the properties of the database in most cases reason
would be due to missing of database owner. Reason could be the current owner of
the database is no longer valid it would have been removed from the server or
would have been disabled or other reasons. So as the owner is not available SQL
server will not allow us to see the properties of the database and will throw
below error:
Property Owner is not
available for Database '[databasename]'. This property may not exist for this
object, or may not be retrievable due to insufficient access rights. (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.2500.0+((KJ_PCU_Main).110617-0038+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.PropertyCannotBeRetrievedExceptionText&EvtID=Owner&LinkId=20476
Once we
change the owner of the database this issue will get fixed automatically. As we
can’t access the property of the database through GUI we need to use the below
command to change the owner of the database:
Sp_changedbowner ‘username’
The above
command will change the owner of the current database. After changing the owner
we will be able to see all the properties of the database.
No comments:
Post a Comment