Mark:
Try this:
/* Print current owner of all databases on instance*/
create table ##dbos (Server varchar(255),DB varchar(255),Owner varchar(255))
go
sp_MSforeachdb @command1='insert ##dbos select @@servername,''?'' as Db, name as Owner from master..syslogins where sid =...