its possible. you just need to reference dbname in table name and use dynamic sql
ie as
EXEC('select * FROM ' + @dbname + '.INFORMATION_SCHEMA.TABLES')
------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/