So, this begs the question - if your guys are knowledgable enough to write 
straight sql, why aren't they doing it in the DB? Another alternative would 
be to give them a list of columns and tables and let them "build" their 
query that way. Then, you'd be able to dynamically generate the queryparams 
in the where clause.

On 9/20/05, Ryan Guill <[EMAIL PROTECTED]> wrote:
> 
> Quick question guys,
> 
> and before I start, let me just say that I do understand the security
> implications of this, this will be for internal use only and guarded
> with a login.
> 
> I am developing a "query browser" for our database guys here.
> Basically I am getting a list of datasources, and giving them a text
> box, let them choose their datasource and type in sql, hit execute and
> creating a query and outputing the results. This is just for them to
> debug with.
> 
> basically I am doing something like this with the query:
> 
> <cfquery name="variables.q" datasource="#form.ds#">
> #form.sqlQuery#
> </cfquery>
> 
> It works beautifully. My problem and question is this though, they
> cant type <cfqueryparam> into the text box, it throws an error saying
> that < is not valid. So its not evaluating the cfqueryparam its
> passing it through as sql. Is there any way that you guys can think
> of that I can get it to evaluate the <cfqueryparam> on the action
> page? I have tried toString() and evaluate() but no dice. any
> suggestions? Im afraid it isn't possible...
> 
> Thanks for any response.
> --
> Ryan Guill
> BlueEyesDevelopment
> [EMAIL PROTECTED]
> www.ryanguill.com <http://www.ryanguill.com>
> (270) 217.2399
> got google talk? Chat me at [EMAIL PROTECTED]
> 
> The Coldfusion Open Application Library - COAL - http://coal.ryanguill.com
> 
> www.ryanguill.com/ <http://www.ryanguill.com/>
> The Roman Empire: www.ryanguill.com/blog/ <http://www.ryanguill.com/blog/>
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218745
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to