Database diagram support objects cannot be installed because this databas does not have a valid owner.

No.of Views2178
Bookmarked0 times
Downloads 
Votes0
By  dotnetfish   On  04 Oct 2010 10:10:14
Tag : SSMO , Database Administrator
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.
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Introduction

Image Loading

I have restore a database from MSSQL 2000 to MSSQL 2005. When i try to open the database diagram, error message below pop up:

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.

ALTER AUTHORIZATION ON DATABASE: Database_name TO valid_login

1.I use SSMS to solve my problem.


In SQL Server Management Studio do the following:

  1. Right Click on your database, choose properties
  2. Go to the Options
  3. In the Dropdown at right labeled "Compatibility Level" choose "SQL Server 2005(90)"
  4. Go to Files
  5. Type "sa" in the owner textbox
  6. Click OK
Image Loading

2.Alternatively, we can solve it using TSQL

- My database name: avlDB
- MY Login: sa

EXEC sp_dbcmptlevel 'avlDB', '90';GOALTER AUTHORIZATION ON DATABASE::avlDB TO "sa"GOUSE [avlDB]GOEXECUTE AS USER = N'dbo' REVERT
GO

Hope helps.Thank you for reading.

 
Sign Up to vote for this article
 
About Author
 
dotnetfish
Occupation-
Company-
Member Type-Senior
Location-United States
Joined date-05 Sep 2010
Home Page-www.xininvoice.com
Blog Page-dotnetfish.blogspot.com
 
 
Other popularSectionarticles
    Comments
    By:razi hosseinyDate Of Posted:5/11/2012 12:58:09 AM
    thank u
    thank u aloooooooooooooooooooooooooooooooooooooooooot
    By:MinWanDate Of Posted:3/24/2012 1:38:31 PM
    Thanks so much
    It works. Wonderful, thanks again and again
    By:nhthinhDate Of Posted:6/29/2011 12:50:18 PM
    It's so good
    it's helpful for me. Thanks so much. It's also right with MSSQL 2008
    By:muhammad junaidDate Of Posted:11/26/2010 4:50:04 AM
    another way
    Opened Visual Studio 2005 Added the Server and database to the Data Connections on the Server Explorer tab. Click Database Diagrams to expand Received message box: This server does not have one or more of the databse objects required to use database diagramming. Do you wish to create them? Clicked YES Diagrams showed up
    By:muhammad junaidDate Of Posted:11/26/2010 4:48:50 AM
    thx frd
    thx god bless u ameen
    Leave a Reply
    Title:
    Display Name:
    Email:
    (not display in page for the security purphase)
    Website:
    Message:
    Please refresh your screen using Ctrl+F5
    If you can't read this number refresh your screen
    Please input the anti-spam code that you can read in the image.
    ^ Scroll to Top