Database Diagram Error

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


SOLUTION


In SQL Server Management Studio do the following:

1. Right Click on your database, go to properties
2. Goto the Options 
3. In the Dropdown at right hand "Compatibility Level" choose "SQL Server 2005(90)"
4. Goto the Files 
5. Enter "sa" in the owner textbox.
6. click OK


Now you will be able to create a database diagram.

Comments

Popular posts from this blog

TSQL To Get All the Names of tables and Databases whose data have changed in last 24 Hours

To Get All the Names of tables and Databases their data have changed in last 24 Hours And Backup those databases

Apply paging in procedure