There are many blogs covering this particular topic on internet but there are very few blogs available that actually will help when you are stuck with these 2 errors. I recently had a very tough time fixing these errors, hence Continue Reading..
Error: Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the Database Properties dialog box or the ALTER AUTHORIZATION statement to set the database owner Continue Reading..
If you have ever handled errors by using TRY-CATCH in SQL Server then you must be familiar with a function called ERROR_PROCEDURE(), which returns the stored procedure name when any error occurs during execution, and by using this function we write the procedure name with Continue Reading..