I have a really wide table. All I want to do is put each value for the row into a single column. I also cannot hard code the column names as ill perform this operation on a number of different tables. So, it has to be dynamic. Lastly, please assume that there is only ever one row in the table.
Is there a simple way to UNPIVOT every value in a table?
Current
Col_A Col_B Col_C Col_D
a b c d
Desired Result
Col_Index Col_Value
1 a
2 b
3 c
4 d
Traditional examples of unpivot are not helpful as i need a simple, and dynamic, way of unpivoting every row/column. Unpivot is applicable to one or several, not all.