I would add a new field into you table, let say IsSent bit, the default
value is 0 which mean didnt send yet and 1 mean sent Then just do a regular
query let say

SELECT TOP 400 *
FROM myTable
WHERE IsSent = 0


then if you loop over the records just update every record
UPDATE myTable
SET IsSent = 1
WHERE ID = #ID#

On Wed, Nov 19, 2008 at 8:23 AM, Elizabeth Meyer <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I have a function in ColdFusion that mails a newsletter to user in the
> database.  There is however over 2000 users in the database.
>
> What is the best way to divide this up, to only send to say 400 users at a
> time, with a couple of minutes break in between?
>
> Ayonix
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4177
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to