apr
03Database diagrams MSSQL
Tagged Under : Database, MSSQL, SQL
(Italiano → English) View originalTranslators:
TITLE: Microsoft SQL Server Management Studio Express
——————————t3p6s9c1h7izg5rx9o7mnj8jjbiskh4esg7ixcpxg63slzpkews5bpa29g0x0qxm
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.s46zp8z1pssv6behf0hibwj6opx45tz6
——————————t3p6s9c1h7izg5rx9o7mnj8jjbiskh4e
Questo post è un promemoria per chi (come me) non si ricorda a memoria come modificare i permessi per la creazione del diagram (molto utile per la visualizzazione del DB nel suo insieme, relazioni incluse) in MSSQL Management studio e ha bisogno di una stringa da utilizzare al volo per farlo.
tes47fszqg72ehtwwx0fcoe3uaqzbsc9
La query giusta da eseguire in questo caso è:tpv2lk9w0pv5ctvwk5t91skn58y613k4
EXEC sp_dbcmptlevel '$NOMEDB', '90'; ALTER AUTHORIZATION ON DATABASE::$NOMEBD TO "$NOMEMACCHINA\$USERNAME"
ovviamente con le opportune sostituzioni sulle variabili $….cheers
tcujdhj09bl8x5ktk9in0zsrkivd65mp
(original) Visualizza English translation
TITLE: Microsoft SQL Server Management Studio Express
——————————
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.
——————————
Questo post è un promemoria per chi (come me) non si ricorda a memoria come modificare i permessi per la creazione del diagram (molto utile per la visualizzazione del DB nel suo insieme, relazioni incluse) in MSSQL Management studio e ha bisogno di una stringa da utilizzare al volo per farlo.
La query giusta da eseguire in questo caso è:
EXEC sp_dbcmptlevel '$NOMEDB', '90'; ALTER AUTHORIZATION ON DATABASE::$NOMEBD TO "$NOMEMACCHINA\$USERNAME"
ovviamente con le opportune sostituzioni sulle variabili $….cheers


Hi, nice post. I have been wondering about this issue,so thanks for sharing. I will certainly be coming back to your site.