You could also use CROSS APPLY with UNION ALL to convert the columns:
select id, Percentname, Percentvaluefrom yourtablecross apply( select 'Percent1', Percent1 union all select 'Percent2', Percent2 union all select 'Percent3', Percent3 --union all -- select 'Percent4', Percent4 .....) c (Percentname, Percentvalue);
Open in new window
You could also use CROSS APPLY with UNION ALL to convert the columns:
Open in new window