Of Code and Me

Somewhere to write down all the stuff I'm going to forget and then need

SQL Server 2005 error: Database diagram support objects cannot be installed because this database does not have a valid owner April 17, 2009

Filed under: Error,Sql Server,Uncategorized — Rupert Bates @ 10:19 am
Tags:

With SQL Server 2005, when you get the error message:

“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 to a valid login, then add the database diagram support objects.”

Even when the database does have a valid owner, then the database compatibility level is probably set to lower than 90, this can happen if you restore a database created in an earlier version of SQL Server. To fix it run:

sp_dbcmptlevel @dbname=’MyDatabaseName’, @new_cmptlevel=90

Advertisements
 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s