I have two tables, one holding the actual data and another with human readable names for the columns.
The table holding the data is queried as follows.
SELECT
[H08CEC38C-281B-4C28-90DE-EEEC1D3C4D2E]
,[H8319D956-2223-41DC-AE91-B504832B8665]
,[H05E82ED3-517B-4545-A44E-1BDC2126A3AD]
,[H519574FD-EFC4-4BFB-8BC9-447FF61E0C0E]
FROM [Database].[dbo].[DIM4DE53E67-85C8-4274-B5ED-5F3526314DEA]
In addition I have a 'meta' table with the actual names of the columns and the table itself.
Name DisplayName Table DisplayTable
[H08CEC38C-281B-4C28-90DE-EEEC1D3C4D2E] [ID] [DIM4DE53E67-85C8-4274-B5ED-5F3526314DEA] [Datatable]
[H8319D956-2223-41DC-AE91-B504832B8665] [Name] [DIM4DE53E67-85C8-4274-B5ED-5F3526314DEA] [Datatable]
[H05E82ED3-517B-4545-A44E-1BDC2126A3AD] [City] [DIM4DE53E67-85C8-4274-B5ED-5F3526314DEA] [Datatable]
[H519574FD-EFC4-4BFB-8BC9-447FF61E0C0E] [Country] [DIM4DE53E67-85C8-4274-B5ED-5F3526314DEA] [Datatable]
I'm looking for a way to replace what I suspect to be unique identifiers with the human readable names from the other table. I have multiple of these tables with a total of over 200 columns which are constantly expanding in length and width (with columns being added).