sql2005| Backup | objects | resolve | data | Database sql2000 backup DATABASE after restoring to sql2005, select database diagram prompt: This database does not have a valid owner, so the database diagram support object cannot be installed. To continue, first set the database owner to a valid login using the file page of the Database Properties dialog box or the ALTER AUTHORIZATION statement, and then add the database diagram support object.
The workaround is as follows:
1, set the compatibility level of 90 (2005 for the)
Use [master]
Go
EXEC dbo.sp_dbcmptlevel @dbname = ' database name ', @new_cmptlevel =90
Go
Or choose the database you restored, right-click, select attribute-> option-> compatibility level, choose sqlserver2005 (90) and then OK,
At this point, you will be prompted to expand the database Diagram node under the database, "This database is missing one or more supporting objects that are required to use the database diagram, create", and select Yes.
2, through the above methods of operation, if the problem persists, in the following ways to continue
Select your database and select "Security"-> "user", select dbo, open the Properties page, if the login name is empty, create a new query, and then
Use [your database name]
EXEC sp_changedbowner ' sa '
After successful execution, you will then select the Database Diagram node and prompt "This database is missing one or more supporting objects required to use the database diagram, create", and select Yes. You can see the original diagram.