x
login about faq Site discussion (meta-askssc)

Problem with Database diagram

Dear all,

I install SQL Server 2008 R2 on Win7 ,and after I created database and tables,When I click the New Database Diagram this message appeared :

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.

I checked the owner and its valid ...any idea ??

more ▼

asked Aug 14 '12 at 05:29 AM in Default

MuhSQL gravatar image

MuhSQL
82 4 6 7

Is the user you're trying to set as the owner a sysadmin? If not you may have to recreate the login mapping to the database in question.

Aug 14 '12 at 02:00 PM swirl80

I login as SysAdmin

Aug 15 '12 at 05:06 AM MuhSQL
(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

It might be worth just running the command to see if it fixes any broken 'links'

alter authorization on database::YourDatabaseName to YourValidUser

Also, are you creating the database from new, or have you restored/attached a previous one? If so you may need to check the compatibility level.

more ▼

answered Aug 14 '12 at 07:33 AM

Kev Riley gravatar image

Kev Riley ♦♦
46.1k 38 43 69

Thanks Kev, I created the database from new ,but If I attach the database (DB created with sql server 2005) the Diagram will work but with new database doesn't work

Aug 14 '12 at 08:48 AM MuhSQL
(comments are locked)
10|1200 characters needed characters left

I solved the problem by change the login from win auth to SQL server auth [sa] and use the command :

alter authorization on database::TEST to [sa]

But with Win auth doesn't work If I use win login and the command is :- alter authorization on database::TEST to [HPDV6-HPHP DV6]

more ▼

answered Aug 15 '12 at 09:16 AM

MuhSQL gravatar image

MuhSQL
82 4 6 7

Aug 15 '12 at 09:57 AM Kev Riley ♦♦

if IIRC, for the very first use of Database Diagram Designer, it must be set up by a member of the db_owner role, otherwise it would not work.

Aug 15 '12 at 10:25 AM Usman Butt
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x394
x29

asked: Aug 14 '12 at 05:29 AM

Seen: 463 times

Last Updated: Aug 15 '12 at 10:25 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.