sp_msforeachdb 'select ''?'' as DBName, count(*) as ObjectCount from ?.sys.objects'
sp_msforeachtable 'select ''?'', count(*) from?'
sp_msforeachtable 'update statistics ?'
sp_msforeachdb 'select ''?'' as DBName, count(*) as ObjectCount from ?.sys.objects'
sp_msforeachtable 'select ''?'', count(*) from?'
sp_msforeachtable 'update statistics ?'