• If you do not require the in a table just

    exec sp_MSforeachdb 'exec sp_helpdb ''?'''