install group concat on sql server 2016 code example Example: how to use group_concat in sql server SELECT STRING_AGG(column_name, ',') AS Result FROM table_name