SELECT DISTINCT COLUMN_NAME, INFORMATION_SCHEMA.COLUMNS.ORDINAL_POSITION AS COLUMNID FROM INFORMATION_SCHEMA.COLUMNS CROSS JOIN INFORMATION_SCHEMA.TABLES