Problem with Database Diagrams in SQL Server 2005

After restoring a backup made in SQL Server 2000 when opening a diagram the following error ocurr:

“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.”

The problem is the compatibility level of the database. The following instruction changes the level of compatibility of the database to 90 in order for diagrams to work:

EXEC sp_dbcmptlevel ‘yourDB’, ’90’

About Rodolfo Finochietti

Uma's and Gino's father, and a programmer ;)

Posted on 12/14/2005, in SQL Server. Bookmark the permalink. Leave a comment.

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

%d bloggers like this: