In SQL Server I have a table like below:

Now I want to return Name Column value as comma separated using SQL Server statement:

- SELECTSTUFF((SELECTDISTINCT', '+CAST(Name ASVARCHAR(100))
- FROM Emp_Information FORXMLPATH('')),1,2,'')AS Employees
In this article you will learn Return Comma Separated column value in SQL Server.
In SQL Server I have a table like below:

Now I want to return Name Column value as comma separated using SQL Server statement:

DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterMembers onlyeBook · SQL ServerBasics of SQL ServerDownload nowWrite a blog post and earn +250 SHARP when it is approved.
Write a blog
Join the conversation! Your thoughts help the community grow.