How to change DB owner for all databases in SQL Server
Date: 18/05/2015
Categories: SQL Server
--Change DB owner with SA user EXEC sp_MSforeachdb 'EXEC [?]..sp_changedbowner ''sa'' '
--Change DB owner with SA user EXEC sp_MSforeachdb 'EXEC [?]..sp_changedbowner ''sa'' '
Leave a Reply