3 Şubat 2011 Perşembe

SQL server database diagram hatası

Sql server database diagram oluşturmaya(yada görüntüleme) çalıştığınızda aşağıdaki gibi bir hata ile karşılaşıyorsanız.
TITLE: Microsoft SQL Server Management Studio
------------------------------

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.

------------------------------
Çözüm olarak şu sorguyu çalıştırabilirsiniz 
EXEC sp_dbcmptlevel 'yourDB', '90';
go
ALTER AUTHORIZATION ON DATABASE::yourDB TO yourLogin
go
use [yourDB]
go
EXECUTE AS USER = N'dbo' REVERT
go 

1 yorum:

  1. olmadı hhem N'dbo kısmına ne yazcaz anlamadım

    YanıtlaSil