EXEC sp_MSforeachtable @command1 = 'select * from ?'