RE: Finding current queries

2007-06-11 Thread Brad Wood
:[EMAIL PROTECTED] Sent: Saturday, June 09, 2007 3:09 PM To: CF-Talk Subject: Re: Finding current queries Ok, I'm still a little confused. If the query is still active then the result set wouldn't be defined yet. Brad, I'm talking of CF queries objects, not SQL queries in the database engine itself

Re: Finding current queries

2007-06-11 Thread Andrew Scott
I think the best way for such an answer would be to look at a server monitor, CF8 has this ability and so does Fusion Reactor which is also great for threads an other things as well. Which is the best form of debugging you can buy, from a seerver point of view. But unless the queries are stored

Re: Finding current queries

2007-06-11 Thread Robertson-Ravo, Neil (RX)
2007 Subject: Re: Finding current queries I think the best way for such an answer would be to look at a server monitor, CF8 has this ability and so does Fusion Reactor which is also great for threads an other things as well. Which is the best form of debugging you can buy, from a seerver point

Re: Finding current queries

2007-06-11 Thread Andrew Scott
Jun 11 08:03:41 2007 Subject: Re: Finding current queries I think the best way for such an answer would be to look at a server monitor, CF8 has this ability and so does Fusion Reactor which is also great for threads an other things as well. Which is the best form of debugging you can buy, from

Re: Finding current queries

2007-06-11 Thread Claude Schneegans
cfoutput cfloop collection=#variables# item=i cfif isquery(variables[i]) #i#: #variables[i].recordcount# recordsbr /cfif /cfloop /cfoutput That code would assume the queries existed in the variables scope and had been run

RE: Finding current queries

2007-06-11 Thread Brad Wood
] Sent: Monday, June 11, 2007 8:11 AM To: CF-Talk Subject: Re: Finding current queries cfoutput cfloop collection=#variables# item=i cfif isquery(variables[i]) #i#: #variables[i].recordcount# recordsbr /cfif /cfloop /cfoutput

Re: Finding current queries

2007-06-11 Thread Josh Nathanson
at the time of your error. -- Josh - Original Message - From: Brad Wood [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Monday, June 11, 2007 7:50 AM Subject: RE: Finding current queries I think I see what you are saying now. You want to examine the query objects

Re: Finding current queries

2007-06-11 Thread Claude Schneegans
I think this thread was discussed before, and you can't get the variables scope in onError or with cferror. Exact, I was the one to asked the question. However, I just found that the request scope is available from the CFERROR template. For instance, this works: CFERROR TYPE=EXCEPTION

Re: Finding current queries

2007-06-11 Thread Claude Schneegans
How are you trapping the errors? Cfcatch, or onerror()? I use CFCATCH for all errors that could normally happen, ie: CFHTTP on a site which does not respond. I use CFERROR for all unexpected errors. -- ___ REUSE CODE! Use custom tags; See

Re: Finding current queries

2007-06-09 Thread Claude Schneegans
If you need to do performance analysis this indepth, This is not what I need, I just need to check if queries currently defined in the CF application returned records or not in case of error. you should definately not be using MS Access! It's a DESKTOP DATABASE! Please give me a break with

RE: Finding current queries

2007-06-09 Thread Dave Watts
This is not what I need, I just need to check if queries currently defined in the CF application returned records or not in case of error. Could you solve this problem by adding logging logic to your application? Please give me a break with this urban legend: 1º Access.exe IS a desktop

Re: Finding current queries

2007-06-09 Thread Claude Schneegans
Ok, I'm still a little confused. If the query is still active then the result set wouldn't be defined yet. Brad, I'm talking of CF queries objects, not SQL queries in the database engine itself. The SQL query may be not active, but there is still a query object defined in the CF application.

Re: Finding current queries

2007-06-08 Thread Jose Diaz
Seefusion/Fusion Ractor - or you could use query analyzer to sp_lock2 and then dbcc inputbuffer on the spid to see what the sp is that is running. On 6/7/07, Rick Root [EMAIL PROTECTED] wrote: On 6/7/07, Claude Schneegans [EMAIL PROTECTED] wrote: Depending on your database, just run a

Re: Finding current queries

2007-06-08 Thread Robertson-Ravo, Neil (RX)
: Fri Jun 08 16:59:24 2007 Subject: Re: Finding current queries Seefusion/Fusion Ractor - or you could use query analyzer to sp_lock2 and then dbcc inputbuffer on the spid to see what the sp is that is running. On 6/7/07, Rick Root [EMAIL PROTECTED] wrote: On 6/7/07, Claude Schneegans [EMAIL

Finding current queries

2007-06-07 Thread Claude Schneegans
Hi, Beside declaring them in the session scope, is there any mean to find all currently active queries in an application? Both in CFMX and CF 5 ? ~| CF 8 – Scorpio beta now available, easily build great internet experiences

RE: Finding current queries

2007-06-07 Thread Brad Wood
:[EMAIL PROTECTED] Sent: Thursday, June 07, 2007 12:57 PM To: CF-Talk Subject: Finding current queries Hi, Beside declaring them in the session scope, is there any mean to find all currently active queries in an application? Both in CFMX and CF 5

RE: Finding current queries

2007-06-07 Thread Chad Gray
PROTECTED] Sent: Thursday, June 07, 2007 1:57 PM To: CF-Talk Subject: Finding current queries Hi, Beside declaring them in the session scope, is there any mean to find all currently active queries in an application? Both in CFMX and CF 5

Re: Finding current queries

2007-06-07 Thread Claude Schneegans
Not sure what you mean? Are you trying to get a report of every currently running template which is querying the database at that point in time? Exact, I'd like to list all active queries in my onError template, together with the number of records found. This could help for debugging. --

RE: Finding current queries

2007-06-07 Thread Brad Wood
MS SQL. ~Brad -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Thursday, June 07, 2007 1:58 PM To: CF-Talk Subject: Re: Finding current queries Not sure what you mean? Are you trying to get a report of every currently running template which is querying

Re: Finding current queries

2007-06-07 Thread Claude Schneegans
If the query is still active, you wouldn't know how many records had been returned because it wouldn't have returned yet. I just mean defined in CF Depending on your database, just run a query like what I had suggested. I don't think this is possible with Access databases. --

RE: Finding current queries

2007-06-07 Thread Brad Wood
To: CF-Talk Subject: Re: Finding current queries If the query is still active, you wouldn't know how many records had been returned because it wouldn't have returned yet. I just mean defined in CF Depending on your database, just run a query like what I had suggested. I don't think

Re: Finding current queries

2007-06-07 Thread Rick Root
On 6/7/07, Claude Schneegans [EMAIL PROTECTED] wrote: Depending on your database, just run a query like what I had suggested. I don't think this is possible with Access databases. If you need to do performance analysis this indepth, you should definately not be using MS Access! It's a