The following storped procedure will execute the print statement for every database that resides upon your SQL Server.
EXEC sp_msForEachDB 'PRINT ''?'''
Neat, eh? 'Tis an undocumented feature.
I completely forgot about it until I came across a reference to it on http://pcg.wikidot.com and thought "this looks familiar"