Tutorials and code for ASP.NET 2.0,C#,SQL Server,AJAX tutorials,jQuery  
Home    Articles    Contact Us
 

ASP.NET
AJAX
Interview Questions
Sql Server
Technology News
Tips and Tricks
jQuery

 

Error Database diagram support objects cannot be installed


Some times when you click on the Database Diagram node in object explorer in SQL
Server Management Studio,you get error message:

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

Solution for this error message: Run below script

EXEC sp_dbcmptlevel 'DBName', '90';
go
ALTER AUTHORIZATION ON DATABASE::DBName TO "LoginName"
go
use [yourDB]
go
EXECUTE AS USER = N'dbo' REVERT
go
 
Change DBName with your DataBase Name and LoginName with your User Name(Id).


User Comments:

Comment By anil verma on 04/07/2010

thanks for solution ..it works fine.


Post Your Comment :


Name
Email:
Comment:

Home | Contact Us

© 2008-09 TechnoReader.com. All rights reserved.