If it is SQL Server 2017 or SQL Server Vnext, SQL Azure you can use string_agg
as below:
select id, string_agg(concat(name, ':', [value]), ', ')
from #YourTable
group by id
If it is SQL Server 2017 or SQL Server Vnext, SQL Azure you can use string_agg
as below:
select id, string_agg(concat(name, ':', [value]), ', ')
from #YourTable
group by id