If you are going to be doing this regularly, you should consider using a stored procedure, assuming your database supports them.
Cary Gordon The Cherry Hill Company At 10:12 AM 4/1/2003 -0400, you wrote: >Hey all, > >I'm trying to do this with a single SQL statement. > >Delete all records from the table tblEvents that are older than 7 days. > >:) --- snip --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4