SQL Server: Change the Owner of All Tables to "dbo"

Reference for me. Reference for you.

sp_MSforeachtable @command1="EXEC sp_changeobjectowner '?','dbo'"