Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

How do I access database diagrams? (database does not have a valid owner error)

$
0
0

Hi,<o:p></o:p>

I am new to
SQL Server 2012 Express Edition which I have installed and I have three
AdventureWorks databases attached.<o:p></o:p>

I want to
look at the database diagrams on the databases but I keep getting this error
message when I click on Database Diagrams under the AdventureWorksLT2012
database (under Databases, under DAVIDLANE-HP\SQLEXPRESS (SQL Server 11.0.3128
- DavidLane-HP\DavidLane) in Sql Server Management Studio:<o:p></o:p>

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.
<o:p></o:p>

The
same thing happens under the AdventureWorks2012 database but under the
AdventureWorksDW2012 database there are already diagrams and I can access them.
<o:p></o:p>

I
found this thread:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/13f39ee8-a548-4e26-97d4-aa1b25d93e65/adventureworks-database-cannot-access-database-diagrams
so I went to the Files Page of the Database Properties of AdventureWorksLT
(right click properties on database) and tried to put in DavidLane-HP\DavidLane
in the owner box but it give me this error message:<o:p></o:p>

TITLE:
Microsoft SQL Server Management Studio

------------------------------<o:p></o:p>

Set owner
failed for Database 'AdventureWorksLT2012'. (Microsoft.SqlServer.Smo)<o:p></o:p>

For help,
click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.3000.0+((SQL11_PCU_Main).121019-1322+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Set+owner+Database&LinkId=20476<o:p></o:p>

------------------------------

ADDITIONAL INFORMATION:<o:p></o:p>

An
exception occurred in SMO. (Microsoft.SqlServer.Smo)<o:p></o:p>

For help,
click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.3000.0+((SQL11_PCU_Main).121019-1322+)&LinkId=20476<o:p></o:p>

------------------------------<o:p></o:p>

The
proposed new database owner DavidLane-HP\DavidLane is mapped as user
DavidLane-HP\DavidLane in this database.

Parameter name: DavidLane-HP\DavidLane<o:p></o:p>

------------------------------

BUTTONS:<o:p></o:p>

OK

------------------------------<o:p></o:p>

Now I'm stuck. How do I create new diagrams for AdventureWorksLT2012 and
AdventureWorks2012, or any database for that matter?<o:p></o:p>

Thanks<o:p></o:p>

David Lane.<o:p></o:p>



Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>