ilker.Weblog()

2008-12-23

Sql Server DB Diagram Error

HATA MESAJI: "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."


SQL Server 2005 instance'ına başka bir instance'dan veritabanı attach ettiğinizde bu hatayı alırsanız, çözmek için SQL Server'da şu sorguyu çalıştırmak yeterli olacaktır:


EXEC sp_dbcmptlevel 'Veritabanı_adı', '90';
go
ALTER AUTHORIZATION ON DATABASE::Veritabanı_adı TO "LoginKullanıcıAdı"
go
use [Veritabanı_adı]
go
EXECUTE AS USER = N'dbo' REVERT
go

Etiketler:

1 Yorum:

Yorum Gönder

Kaydol: Kayıt Yorumları [Atom]



<< Ana Sayfa