Hi
You can use to fetch all the Databases and It's user tables...
Create Table #AllTables
(
DBName Varchar(100),
TableName Varchar(128)
)
Insert #AllTables
Exec Sp_MsforeachDB 'Use [?]; Select DB_Name(),Name from sys.all_objects Where type=''U'' And is_ms_shipped =0'
Select * from #AllTables
Drop Table #AllTables