Executing a query that is stored in a database
I want to retrieve data that is store in a database. I will use the #evaluate(string)# function to execute the coldfusion code in the data that is returned. It works fine for simple variable but hangs up when I try to execute a stored query. Any ideas?
example:
Database: Table: Cell: "<cfquery datasource="#session.dsn#" name="getcust">
select * from customer where cust_id = #url.cust_id#
</cfquery>"
I query the database for that cell and it will not evaluate the query. Is this possible?
