Question : List all databases and all tables within all those databases and all columns within those tables

I would like to list all databases and all tables withing all those databases and all columns within those tables for an entire sqlserver

Answer : List all databases and all tables within all those databases and all columns within those tables

This would do:

sp_msforeachdb 'select TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME from ?.INFORMATION_SCHEMA.COLUMNS'
Random Solutions  
 
programming4us programming4us