Blog Stats
  • Posts - 25
  • Articles - 0
  • Comments - 53
  • Trackbacks - 0

 

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

Bir SQL veritabanını SQL Server 2005 üzerinde restore yaptıktan database diagram oluşturmak istersek bazen aşağıdaki gibi bir hata ile karşılaşırız.

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.

Bu durumda yapılabilecek en pratik çözümlerden bir tanesi aşağıda.

New Query penceresinde aşağıdaki prosedürü çalıştırdığınız zaman sorun çözülecektir. veritabani-ismi kendi veritabanınıza göre düzenlenmelidir. Kullanıcı olarak da sa seçili. İsterseniz başka bir kullanıcı için de değiştirip çalıştırabilirsiniz.

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


Feedback

# re: Database diagram support objects cannot be installed because this database does not have a valid owner

Gravatar çok sağolun yaa bunu paylaştıgınız için sql server 2008 dede işe yaradı vallaaa gecenin bu saatinde ne kadar dua etsem az :))) 03:32 12/18/2009 3:32 AM | hacer

# re: Database diagram support objects cannot be installed because this database does not have a valid owner

Gravatar Never knew that. Thanks for the info. I think your blog is going to do well. People will always return to read this kind of content. Great job. ,I really appreciate your work to this site. 2/4/2010 8:01 AM | casino on-line

# re: Database diagram support objects cannot be installed because this database does not have a valid owner

Gravatar saol kardesım cok lazımdı tesk 2/13/2010 11:43 PM | muhsin

Post a comment





 

Please add 2 and 7 and type the answer here:

 

 

Copyright © Yunus Özen