How to enable database diagram on SQL Server 2008
You have to enable database diagram on SQL Server, otherwise when you try to create a database diagram on SQL Server 2008, you are greeted with this message:
1
2
3
4
5
Microsoft SQL Server Management Studio
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.
So, first go to the database properties and select the Files tab. Select a valid login as the DB owner. Then go back to the Database Diagrams folder, right click and select Install Diagram Support. The next dialog show this message:
1
2
3
4
Microsoft SQL Server Management Studio
This database does not have one or more of the support objects required to use database diagramming. Do you wish to create them?
Click Yes.
Now go back and create a diagram.
This post is licensed under CC BY 4.0 by the author.