I'm currently trying to run the following query in SQL CE:
select column_name from information_schema.columns where table_name=[tablename]
This query, as expected, returns a set of columns which belong to the specified table. The returned data looks like this:
column1
column2
column3
column4
However, for this particular scenario, it is very important that the results are returned as a single string in a single field.
My desired output is:
column1,column2,column3,column4
etc...
How can I achieve this in SQL CE?