• sp_changedbowner is an old procedure which may be removed in future release.

    sp_msforeachdb is undocumented so would rather not use in a production system, particularly as I have heard of a few problems with it, such as missing databases.