Peter Schneider


MCT, MCSD.NET, MCAD.NET, MCDBA

News

Locations of visitors to this page

  

Austrian .NET Community

SQL Server 2005 Database Diagram Problem

If you encounter following error message



in Sql Server Management Studio, you should check two things:

The problem might arrise if you restore a database on your Sql Server and the Database Compatibility Level is not set to 90. Try to switch the level via Database Properties. This can also be done with T-SQL like this:

EXEC sp_dbcmptlevel 'databasename', 90

If the problem persists you should do a

ALTER AUTHORIZATION ON DATABASE::databasename TO [domain\user]

because in Sql Server Management Studio (without SP1) you cannot set the database owner to the correct login via Database Properties - or better said the Management Studio actually displays either the correct User - yet it recognises it as invalid or it displays the original User and cannot map it to the current server because it doesn't find a corresponding SSID.

Posted: May 27 2006, 08:03 PM by pschneider | with 4 comment(s)
Filed under:

Comments

Christi said:

Thanks for the tip!
# June 13, 2006 10:04 AM

Ramy Zein said:

give me the same exception  after i execute thie tow statments

i need solution

thank you

# April 28, 2007 7:11 AM

Braden said:

THANK YOU so much.  I didn't see this at all.  Didn't realize that it was a database compatibility problem.

You rock!

# August 15, 2007 11:36 AM

MuthuPandi said:

Hi.. I've one plm, after i backup my database diagram and restore into other system. it wouldn't show there. what can I do..?

# August 27, 2007 1:15 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)