The SELECT STUFF is (( the SELECT ' , ' + field FROM table name for XML path ( '' )), . 1 , . 1 , '' )