Yes, but they'd have to do one at a time...USE NorthwindGOSET NOCOUNT ONCREATE TABLE myTable99(TABLE_CATALOG sysname, TABLE_SCHEMA sysname, TABLE_NAME sysname, TABLE_TYPE varchar(50))GOCREATE PROC usp_FindMyTable (@TABLE_NAME sysname = null)ASSET NOCOUNT ONTRUNCATE TABLE myTable99IF @TABLE_NAME IS NULL BEGIN PRINT 'No Table to look for. Please supply a tabke name. Like: ' + CHAR(13) + ' EXEC usp_FindMyTable Orders' GOTO usp_FindMyTable_Exit ENDDECLARE @MAX_dbname sysname, @dbname sysname, @sql varchar(8000)SELECT @MAX_dbname = MAX([name]), @dbname = MIN([name]) FROM master..sysdatabasesWHILE @dbname < = @MAX_dbname BEGIN SELECT @sql = 'SET NOCOUNT ON ' + CHAR(13) + 'INSERT INTO myTable99(TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE)' + CHAR(13) + 'SELECT TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE ' + CHAR(13) + 'FROM ' + @dbname + '.INFORMATION_SCHEMA.Tables' + CHAR(13) + 'WHERE TABLE_NAME LIKE ''' + @TABLE_NAME + '%' + '''' + CHAR(13) -- SELECT @sql EXEC(@sql) SELECT @dbname = MIN([name]) FROM master..sysdatabases WHERE [name] > @dbname ENDSELECT * FROM myTable99usp_FindMyTable_Exit:SET NOCOUNT OFFRETURNGOEXEC usp_FindMyTableEXEC usp_FindMyTable OrdersGOSET NOCOUNT OFFDROP PROC usp_FindMyTableDROP TABLE myTable99GO
Brett8-)