When you first run it, I suggest running it with higher numbers and whittling it down until you get it near the number you want to do nightly.
<cfsetting enablecfoutputonly="true" requesttimeout="1800" />
<!--- @@displayname: Purge farLog Table (leaving only the last 1m records) --->
<!--- @@author: Jeff Coughlin (jeff [at] jeffcoughlin.dot.com) --->
<cftransaction>
<cfquery name="qPurgeFarLog" datasource="#application.dsn#">
delete from farLog
where ObjectID not in (
select top 1000000 ObjectID
from farLog
order by datetimecreated desc)
</cfquery>
</cftransaction>
<cfoutput>
<h2>Purge complete</h2>
</cfoutput>
<cfsetting enablecfoutputonly="false" />
--
Jeff Coughlin
> --
> You received this message cos you are subscribed to "farcry-dev" Google group.
> To post, email: farcr...@googlegroups.com
> To unsubscribe, email: farcry-dev+...@googlegroups.com
> For more options: http://groups.google.com/group/farcry-dev
> --------------------------------
> Follow us on Twitter: http://twitter.com/farcry
--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcr...@googlegroups.com
To unsubscribe, email: farcry-dev+...@googlegroups.com
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry