When getting the following erro use the following command to get rid of it
Property Owner is not available for Database '[TEST]'. This property may not exist for this object, or may not be retrievable due to insufficient access rights. (Microsoft.SqlServer.Smo)
replace db_name with the name of your db
USE [db_name]
GO
EXEC sp_changedbowner 'sa'
GO |