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
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
相关文章推荐
- Microsoft SQL Server 2008 R2 XML处理 One solution is to increase the number of characters retrieved from the server for XML data.
- Could not store transport type data for Receive Location 'Recv.Loc' to config store. Primary SSO Server 'Sql-server' failed. The external credentials in the SSO database are more recent.
- The SQL Server Service Broker for the current database is not enabled
- SQL Server 2008安装报错:The specified credentials for the sql server service are not valid
- VS2010 + Sql Server Express 2008 R2 如何安装(兼谈错误:The database 'XXX' cannot be opened because it is version 661. This server support
- [转]Using the Microsoft Connector for Oracle by Attunity with SQL Server 2008 Integration Services
- Solution: Performance Dashboard Reports for SQL Server 2008 Can not install
- Solution for SQL Server 2008 R2 Management Studio Intellisense not working
- Restore SQL Server 2005 error : "The tail of the log for the database "TEST1" has not been backed up."
- Renaming the Physical Filename for Datafiles in SQL Server 2008
- sql express 2008 - Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instan
- The SQL Server Service Broker for the current database is not enabled, and as a result query notifications are not supported.
- MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=DEFAULT' at line 1
- 数据库质疑修复总结 For SQL Server 2000/2005/2008/2008R2
- 两法解决:'未能正确加载VSTS for Database Professionals Sql Server Data-tier Application
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection
- DB太大?一键帮你收缩所有DB文件大小(Shrink Files for All Databases in SQL Server)
- which measurement is used for SQL Server 2008 GEOGRAPHY STDistance() value
- MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=DEFAULT’
- Windows ->> FIX: “The security database on the server does not have a computer account for this workstation trust relationship”