您的位置:首页 > 数据库

The Database Diagrams solution for SQL Server 2008

2012-06-10 22:20 399 查看
Today, i want to create a database diagram for my a database. it throws an error "Database diagram support objects cannot be installed because this database does not have a valid owner..." when i was clicking on New database diagram menu. My SQL Server is 2008 express.

Luckily, i excuted the following script, and then the problem are fixed.

EXEC sp_dbcmptlevel 'yourDB', '90';
go
ALTER AUTHORIZATION ON DATABASE::yourDB TO "yourLogin"
go
use [yourDB]
go
EXECUTE AS USER = N'dbo' REVERT
go
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐