Roles
Admin
User
DeleteAll
ReadAll
Report
The above "Roles" table contains a list of values. I have a stored procedure that must return a table with one field called retVal that is equal to a comma delimited list of all the values found in the above "Roles" table. Basically, I need it to return a table looking like this
retVal='Admin,User,DeleteAll,ReadAll,Report'
Is there an easy way to do this with SQL? I can use CURSORS and do row by row processing, but it seems like there should be an easier way. Does anyone know how to do this easily without CURSORS?