Solved

When I click on the Database Diagram node in Sql Server 2005, I get an error message that tells me the databse object cannot be installed.

Posted on 2006-11-02
7
332 Views
Last Modified: 2012-06-22
I just loaded Sql Server 2005 Developer Edition onto my server to help with developing ADO.Net apps. I tried to creat a diagram using a couple of related tables but I got an error message: "Database objects cannot be installed because the database does not have a valid owner". I never had to do this with Sql server 2000 to create my diagrams. What do I need to install to make some diagrams?

Thanks
0
Comment
Question by:grouchyfd
  • 4
  • 3
7 Comments
 
LVL 18

Expert Comment

by:ShogunWade
ID: 17861171
The database was probably a sql 2000 database i guess?     Check the database compatibility level in database properties.    it must be set to 9.0 or you cant create diagrams.
0
 

Author Comment

by:grouchyfd
ID: 17861547
I can't seem to locate any thing like this in the properties windows of the database. The rest of the message is:
"To continue, first use the Files page of the Database Properties box or the ALTER AUTHORIZATION statement to set the database owner to a valid login, then add the database diagram support objects."  When I open the Files page, database owner is listed as (my server name)\Administrator. I also have it set up with Windows Authentication so I wouldn't have to login to the server all the time.
0
 
LVL 18

Expert Comment

by:ShogunWade
ID: 17861907
dont worry about the detail of the error message ,it's misleading.

from SQL Server MAnagement Studio:
right click the database and click properties,   from there on the left hand side click on "Options".   the screen shows a field called "Compatability level"  change this to SQl Server 2005 (90).

0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

Author Comment

by:grouchyfd
ID: 17862111
I found the compatability level and changed it to Sql Server 2005 (90). I restarted the the server and I still get the same message when I try to make a diagram.
0
 
LVL 18

Accepted Solution

by:
ShogunWade earned 500 total points
ID: 17862132
ok.  now change the database owner to sa
0
 

Author Comment

by:grouchyfd
ID: 17862540
Thank you ShogunWade for your help and expertise. That got it. I know enough SQL Server to get me in trouble, but I need it for my app. development.
0
 
LVL 18

Expert Comment

by:ShogunWade
ID: 17902304
Youre welcome
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question