dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

Cannot create database diagrams - sqlserver-faq

This is a discussion on Cannot create database diagrams - sqlserver-faq ; Hi, I am new to SQL 2005. I have recently setup SQL Server 2005 and retore a database from SQL 2000. The database seem to be working except that It won't allow me to chane or create new database diagram. ...


Home > Database Forum > Microsoft SQL Server > sqlserver-faq > Cannot create database diagrams

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 12-04-2007, 05:56 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Cannot create database diagrams

Hi,

I am new to SQL 2005. I have recently setup SQL Server 2005 and retore a
database from SQL 2000. The database seem to be working except that It won't
allow me to chane or create new database diagram.

The following error:

TITLE: Microsoft SQL Server Management Studio Express
------------------------------

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
------------------------------


SF


Reply With Quote
  #2  
Old 12-04-2007, 06:46 AM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Cannot create database diagrams

Customize and run the following command batch:

EXEC sp_dbcmptlevel 'yourDB', '90';
go
ALTER AUTHORIZATION ON DATABASE::yourDB TO "yourLogin"
go
use [yourDB]
go
EXECUTE AS USER = N'dbo' REVERT
go

--
Ekrem Önsoy



"SF" wrote in message
news:u6aQmvlNIHA.5860@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> I am new to SQL 2005. I have recently setup SQL Server 2005 and retore a
> database from SQL 2000. The database seem to be working except that It
> won't allow me to chane or create new database diagram.
>
> The following error:
>
> TITLE: Microsoft SQL Server Management Studio Express
> ------------------------------
>
> 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
> ------------------------------
>
>
> SF
>


Reply With Quote
  #3  
Old 12-05-2007, 09:53 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: Cannot create database diagrams

Thank you Ekrem Önsoy

It work very well.

Sf

"Ekrem Önsoy" wrote in message
news:B940FE13-BD19-4BB8-834B-C04DE070A397@microsoft.com...
> Customize and run the following command batch:
>
> EXEC sp_dbcmptlevel 'yourDB', '90';
> go
> ALTER AUTHORIZATION ON DATABASE::yourDB TO "yourLogin"
> go
> use [yourDB]
> go
> EXECUTE AS USER = N'dbo' REVERT
> go
>
> --
> Ekrem Önsoy
>
>
>
> "SF" wrote in message
> news:u6aQmvlNIHA.5860@TK2MSFTNGP04.phx.gbl...
>> Hi,
>>
>> I am new to SQL 2005. I have recently setup SQL Server 2005 and retore a
>> database from SQL 2000. The database seem to be working except that It
>> won't allow me to chane or create new database diagram.
>>
>> The following error:
>>
>> TITLE: Microsoft SQL Server Management Studio Express
>> ------------------------------
>>
>> 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
>> ------------------------------
>>
>>
>> SF
>>

>



Reply With Quote
Reply

Thread Tools
Display Modes


LinkBacks (?)

LinkBack to this Thread: http://dbaspot.com/forums/sqlserver-faq/348914-cannot-create-database-diagrams.html

Posted By For Type Date
Khalid-Khan's blog - StumbleUpon This thread Refback 08-24-2009 03:56 AM
Database diagram support objects cannot be installed - microsoft.public.sqlserver.programming | Google Groups This thread Refback 02-26-2009 12:21 AM
chris carter's web log This thread Refback 01-26-2009 07:04 PM


All times are GMT -4. The time now is 05:53 PM.