I want to pass table name to a CF query/SQL statement and return the contents of that table in comma separated format.
This means the number of fields and their corresponding names are variable.
Currently, I am retrieving individual field names from the SQL syscolumns table and using those names to construct another query to retrieve the actual data. However, when I try to get the actual data, I cannot output data using variables (forget the CSV part). Just show me the data.