If you do need to do this across databases, yhou may want to go with something similar to what I posted in the other thread you asked about count(*)'s.i.e.SET NOCOUNT ONDECLARE @SQLCommand varchar(8000), @Debug intSET @SQlCommand = ''SET @Debug = 1SELECT @SQlCommand=@SQlCommand+ 'SELECT COUNT(*) as [Database_'+[Name]+'_#Columns] FROM ['+[Name]+'].INFORMATION_SCHEMA.COLUMNS;' FROM [master].sys.sysdatabases WHERE [Name] NOT IN ('Master','msdb','tempdb','model')IF @Debug = 1 SELECT @SQlCommandIF @Debug = 0 exec(@SQlCommand)*##* *##* *##* *##* Chaos, Disorder and Panic ... my work is done here!