我正在尝试从我拥有的现有 SQLExpress 数据库生成数据库图,但出现此错误:
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.
根据属性,我是所有者:
我确实尝试过,但语法不正确
ALTER AUTHORIZATION ON DATABASE::GuitaristDB TO PDC1\tcastonzo;
这已执行但可能不正确
ALTER AUTHORIZATION ON DATABASE::GuitaristDB TO tcastonzo;