Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outputting a list

Status
Not open for further replies.

ice78991

Programmer
Nov 20, 2006
216
I am using Coldfusion with Sql Server 2005 and I am using coldfusion to convert a simple recordset to a list

Is it possible/advisable to perform this conversion in a stored procedure

ie converting the output of

SELECT names FROM dir

to a comma seperated list @list

which I could then output to coldfusion
 
there's an easier way
Code:
<CFQUERY NAME="myquery" ...>
select name from dir
</CFQUERY>

<CFSET listofnames=ValueList(myquery.name) >

tadaaaa!! :)

r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top