How to format TSQL SELECT output in SQL Sever
- by mohamadreza
How to loop through a select statement results to have a formatted text?
for example the select is like:
select name from table
and we want a variable @names like this:
"name1,name2,name3"
Database is SQL Server 2005