29 Eylül 2009 Salı

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

Management studio açarak aşağıdaki komutu kendinize göre düzenleyip. çalıştırmanız yeterli böylece database diagramlarını kolaylıkla görebilirsiniz.


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

Hiç yorum yok:

Yorum Gönder