SELECT TABLE_NAME, COLUMN_NAME, DATA_TYPE, CHARACTER_MAXIMUM_LENGTHFROM INFORMATION_SCHEMA.COLUMNSWHERE TABLE_SCHEMA = 'dbo'ORDER BY TABLE_NAME, ORDINAL_POSITION;