venerdì 25 settembre 2009

cambiare l'owner di oggetti in tabelle MS SQL

eseguire questo script:

select 'execute sp_changeobjectowner '+ '''' + 'utente.'+name+''''+','+'''dbo''' from sysobjects where xtype = 'U' and uid=5 order by name


e poi eseguire le righe ottenute....


(cambia "utente" in "dbo"...)

Nessun commento:

Posta un commento