SQL Server Information_schema Temp Table
SELECT
*
FROM
tempdb.INFORMATION_SCHEMA.COLUMNS
WHERE
TABLE_NAME LIKE '%XYZ%'
ORDER BY
ORDINAL_POSITION
MzanziLegend
SELECT
*
FROM
tempdb.INFORMATION_SCHEMA.COLUMNS
WHERE
TABLE_NAME LIKE '%XYZ%'
ORDER BY
ORDINAL_POSITION