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’

SQL Server

Rodolfo Finochietti View All →

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

Leave a Reply

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

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

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: