Database diagram ...... dose not have a valid owner.解决方法
2008-04-30 21:22
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. 我是用windows帐户登陆的。(试了下sa登陆,结果一样) 解决方法: 1. 右键点击数据库,选“properties ” 2. 点选左侧“Options” 3. 在'Compatibility Level' 选 'SQL Server 2005(90)' 4. 点选左侧“Files” 5. 在owner里填入 'sa' 6. OK 至此,Diagrams目录可以使用了。 或者使用以下语句: EXEC sp_dbcmptlevel '数据库名', '90'; go ALTER AUTHORIZATION ON DATABASE::数据库名TO "登录数据名" go use [数据库名] go EXECUTE AS USER = N'dbo' REVERT
|