RE: Is there a way to get one template to stop the process of another template?

2000-05-15 Thread Lon Lentz


This was asked of me by someone else here. I believe their idea here is
to set up a few
   templates which we could access remotely that would allow us to kill an
infinite loop or
   server slaying count...without us having to drive back to do it on site.



-Original Message-
From: Troy Johnson [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 12, 2000 6:00 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Is there a way to get one template to stop the process of
another template?


No.  The called template would have to stop processing on it's own.  There's
no way for another template to "monitor" the action of another and
intervine.   You would have to set some variable in the called template
which would cause it to stop running.  This of course is not what you want
to do, but I don't see any alternative.  If you tell me what you're trying
to accomplish maybe I could give you some ideas.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 12, 2000 1:41 PM
To: [EMAIL PROTECTED]
Subject: RE: Is there a way to get one template to stop the process of
another template?


Lon Lentz
Applications Developer - GetLists.Com
DataWarehousing and List Sales - Market your lists on the Net!
[EMAIL PROTECTED]
941-541-9000 Ext. 210

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Is there a way to get one template to stop the process of another template?

2000-05-13 Thread Philip Arnold - ASP

Example: I have a template which is running a query that is
 attempting to
 pull millions
   of records. Is there a way I can setup another template which will
 interrupt the query template?
   Or if a template sets up an infinite loop, is there a way to
 terminate it
 from another template?

Remeber also that the server is running before the information "sent" to the
browser, also, on long generation pages, since the server is running faster
than the browser sees, the server would be way ahead of any checks.

The best way to do this is to check the loop wouldn't be infinite before
it's run, or put some limitation into the SQL (i.e. select top 5000 * from
myTable)

It would slow down the creation, but select Count(*) from myTable where 
would product the number of rows, and if it's too many, then refuse to run
it...

BTW, I don't recommend using * in any selects, as it's slower than
specifying the column names, even if there are loads of columns...

HTH

Philip Arnold
ASP Multimedia Limited
T: +44 (0)20 8680 1133

"Websites for the real world"

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Is there a way to get one template to stop the process of another template?

2000-05-12 Thread Troy Johnson

it may be easier to set the maxrows returned to a certain value.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 12, 2000 1:29 PM
To: cftalk
Subject: Is there a way to get one template to stop the process of
another template?



   Example: I have a template which is running a query that is attempting to
pull millions
  of records. Is there a way I can setup another template which will
interrupt the query template?
  Or if a template sets up an infinite loop, is there a way to terminate it
from another template?




Lon Lentz
Applications Developer - GetLists.Com
DataWarehousing and List Sales - Market your lists on the Net!
[EMAIL PROTECTED]
941-541-9000 Ext. 210


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Is there a way to get one template to stop the process of another template?

2000-05-12 Thread Troy Johnson

No.  The called template would have to stop processing on it's own.  There's
no way for another template to "monitor" the action of another and
intervine.   You would have to set some variable in the called template
which would cause it to stop running.  This of course is not what you want
to do, but I don't see any alternative.  If you tell me what you're trying
to accomplish maybe I could give you some ideas.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 12, 2000 1:41 PM
To: [EMAIL PROTECTED]
Subject: RE: Is there a way to get one template to stop the process of
another template?



  We've done that, actually, with an application. After the server choked a
couple times.

  My question is really about the ability of one template to interrupt or
affect the concurrent
 action of another template. Is it possible?



-Original Message-
From: Troy Johnson [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 12, 2000 4:30 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Is there a way to get one template to stop the process of
another template?


it may be easier to set the maxrows returned to a certain value.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 12, 2000 1:29 PM
To: cftalk
Subject: Is there a way to get one template to stop the process of
another template?



   Example: I have a template which is running a query that is attempting to
pull millions
  of records. Is there a way I can setup another template which will
interrupt the query template?
  Or if a template sets up an infinite loop, is there a way to terminate it
from another template?




Lon Lentz
Applications Developer - GetLists.Com
DataWarehousing and List Sales - Market your lists on the Net!
[EMAIL PROTECTED]
941-541-9000 Ext. 210


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.