Re: Get Actual Query Run

2003-02-16 Thread Jann VanOver
ee > ampersands; > > > > and stored it in the DB. When I pull it back out of my DB, I reverse the > Replace() call. > > Works like a champ. > >> -Original Message- >> From: Michael Ross [mailto:[EMAIL PROTECTED]] >> Sent: Friday, February 14, 2003 10:02

RE: Get Actual Query Run

2003-02-14 Thread Matthew Small
http://www.showstopperonline.com -Original Message- From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 12:31 PM To: CF-Talk Subject: RE: Get Actual Query Run Let's say you are building a query from user input. Let's say (completely ridiculous I know) that

RE: Get Actual Query Run

2003-02-14 Thread Mark A. Kruger - CFG
ious condition. It's important to scrub the string of keywords and other potentially damaging stuff BEFORE you replace the single quotes and store the data. Another thing to note is that passing integers directly into a query is even more dangerous. An injection attacker doesn't have to fut

Re: Get Actual Query Run

2003-02-14 Thread Scott Weikert
I'm kind of doing this with a project... in a process, I have a query that is VERY varied, depending on various factors, so there's lots of ifs, switch/cases, etc. that determine the query in the end. What I do is (like some others have mentioned) build up a string variable with the query code.

RE: Get Actual Query Run

2003-02-14 Thread Matthew Small
-1847 http://www.showstopperonline.com -Original Message- From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 11:22 AM To: CF-Talk Subject: RE: Get Actual Query Run Michael, If you do this in production mode for some reason watch out. You will be for

RE: Get Actual Query Run

2003-02-14 Thread Mark A. Kruger - CFG
believe. -Mark -Original Message- From: Matthew Small [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 10:11 AM To: CF-Talk Subject: RE: Get Actual Query Run So write the code that is in your cfquery into a file: select * from table where id = #id# I think you can get the

Re: Get Actual Query Run

2003-02-14 Thread Dave Carabetta
>I have a question. I have a query that is built depending on many things, >the where statement, order by, actual columns asked for that kinda >thing. I want to save what the actual sql text is that ran that query. > Like what you can see in the debugging code. Does this make sense? Any

RE: Get Actual Query Run

2003-02-14 Thread AEverett
You could also put it between CFSAVECONTENT tags if you want to save it to a variable. > -Original Message- > From: charlie griefer [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 14, 2003 11:14 AM > To: CF-Talk > Subject: Re: Get Actual Query Run > > > Is

RE: Get Actual Query Run

2003-02-14 Thread Mark A. Kruger - CFG
Actual Query Run I have a question. I have a query that is built depending on many things, the where statement, order by, actual columns asked for that kinda thing. I want to save what the actual sql text is that ran that query. Like what you can see in the debugging code. Does this make

RE: Get Actual Query Run

2003-02-14 Thread Matthew Small
-Original Message- From: Michael Ross [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003 11:02 AM To: CF-Talk Subject: Get Actual Query Run I have a question. I have a query that is built depending on many things, the where statement, order by, actual columns asked for that

Re: Get Actual Query Run

2003-02-14 Thread Randell B Adkins
Also if you wanted a TXT file or something, sure, just a variable to hold the lines of SQL then write the variable to a file using CFFILE >>> [EMAIL PROTECTED] 02/14/03 11:02AM >>> I have a question. I have a query that is built depending on many things, the where statement, order by, actual col

Re: Get Actual Query Run

2003-02-14 Thread charlie griefer
Is it just that you want to see the actual SQL code that was passed to the database? Just take the code between your tags and pop it into tags. ? charlie Michael Ross writes: > I have a question. I have a query that is built depending on many things, the where >statement, order by,

Re: Get Actual Query Run

2003-02-14 Thread Randell B Adkins
if you have debugging turned on with the options under Debugging Options, you will see EVERY query that was executed, # of records, time it took to process the query and more >>> [EMAIL PROTECTED] 02/14/03 11:02AM >>> I have a question. I have a query that is built depending on many things, the

Get Actual Query Run

2003-02-14 Thread Michael Ross
I have a question. I have a query that is built depending on many things, the where statement, order by, actual columns asked for that kinda thing. I want to save what the actual sql text is that ran that query. Like what you can see in the debugging code. Does this make sense? Any help