Problem

After restoring DB in SQL Server 2005 db most of the time I get the following error:

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

This was not new to me and I always used to take the following steps to solve it:

1. Right Click on your database, choose properties
2. Goto the Options Page
3. In the Dropdown at right labeled "Compatibility Level" choose "SQL Server 2005(90)"
4. Goto the Files Page
5. Enter "sa" in the owner textbox.
6. Hit OK

But for some reason today the above steps did not work.... After googling for a while I quickly found
the following suggestion which worked just fine for me....
go

相关文章:

  • 2021-11-16
  • 2021-10-29
  • 2022-01-27
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2021-09-06
  • 2021-12-29
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2021-06-08
  • 2022-12-23
  • 2021-07-15
  • 2021-08-26
相关资源
相似解决方案