Unable to create Database diagrams

by rahul 6/17/2009 10:51:17 AM

Just re-installed Visual Studio 2008 SP1 on my brand new Windows 7 RC, along with SQL Server 2005. I was struggling with the following error for a while, since I wanted to create a Database Diagram.

TITLE: 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.
------------------------------
BUTTONS: OK
------------------------------

Here is what resolved it for me.


    Right Click on your database, choose properties
    Goto the Files Page
    Enter "sa" in the owner textbox.
    4. Hit OK

Hope this helps, Wave
Rahul


Quote of the day:
Always and never are two words you should always remember never to use. - Wendell Johnson


blog comments powered by Disqus

Rahul Soni

Rahul Soni  Twitter

 LinkedIn

 Facebook

 Email me



Vivek Kumbhar

Vivek Kumbhar  Twitter

 LinkedIn

 Facebook

 Email me


Stack Exchange

profile for Vivek at Server Fault, Q&A for system administrators and IT professionals

profile for Rahul Soni at Stack Overflow, Q&A for professional and enthusiast programmers

Calendar

<<  February 2012  >>
MoTuWeThFrSaSu
303112345
6789101112
13141516171819
20212223242526
2728291234
567891011

View posts in large calendar

All Items
Sign in

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2012, Rahul Soni

Powered by BlogEngine.NET 1.4.5.0