FREE Microsoft eBooks

Microsoft Senior Sales Excellence Manager – Eric Ligman posted a list of almost 300 FREE Microsoft eBooks. You can download them all from hos blog at the following address:
http://blogs.msdn.com/b/mssmallbiz/archive/2014/07/07/largest-collection-of-free-microsoft-ebooks-ever-including-windows-8-1-windows-8-windows-7-office-2013-office-365-office-2010-sharepoint-2013-dynamics-crm-powershell-exchange-server-lync-2013-system-center-azure-cloud-sql.aspx

Advertisements

Property Owner is not available for Database.

Sometimes when you try to open the properties dialog for a database the following error message is displayed:

“Property Owner is not available for Database ‘[<database>]’. This property may not exist for this object, or may not be retrievable due to insufficient access rights.  (Microsoft.SqlServer.Smo)”

This error happens when you are trying to access the database options and the database doesn´t have a database owner. This usually happens when the database owner user was deleted and a new database owner hasn´t been assigned to the database.

Assign a new user to the database using sp_changedbowner, for example:
use <databasename>
go
sp_changedbowner ‘sa’
go

The following query lists possible database owners that can be assigned to the database:
select databases.name,server_principals.name
from sys.[databases]
inner join sys.[server_principals]
on [databases].owner_sid = [server_principals].sid
go

There are lots of other blogposts about this issue, here are a couple of examples:
http://sqlpost.blogspot.se/2009/06/sql-server-error-property-owner-is-not.html
http://blog.dampee.be/post/2008/06/22/MSSQL-2005-error-message-quot3bProperty-Owner-is-not-available-for-Database-databaseNamequot3b.aspx

Check Database Size

There is a standard SQL report that shows how much space a database is using. In SQL Server Management Studio for SQL Server 2008 R2 and newer, right-click on the database you are interested in and select Reports->Standard Reports->Disk Usage.

There is a good description of this report, including information about how to resize a Operations Manager database in the SCOMfaq.ch blog: http://blog.scomfaq.ch/2012/06/26/scom-check-size-of-databases-sql-standard-reports/