That's on the right track, but I'd like to also point out that an easy way
to update the "flag" field is to use a stored procedure. Within the sproc
you can return the records affected by the email notice and revisit each row
to update the flag value. =)
Matt
[quoted text, click to view] "Matt" <NoSpam:Matthew.Moran@Computercorp.com.au> wrote in message
news:ucN2OnDrEHA.868@TK2MSFTNGP10.phx.gbl...
> Hi Kolos,
>
> We do something similar.
>
> We have an additional field in our subscription Queue which has a
> Processed
> Flag field (just a BIT). We update this field whenever the entry has been
> processed via the data driven subscription's query. If you don't want to
> add a field to this table, you could create an additional table recording
> a
> log of processed Orders.
>
> HTH
>
> Matt
>
> "Kolos Daniel" <d1974kol@mailbox.hu> wrote in message
> news:OeW5p0GgEHA.556@tk2msftngp13.phx.gbl...
>> I would like to use e-mail delivery for the following scenario: new
>> orders
>> arrive in a table and i
>> would like to send confirmation messages which contain the content of the
>> order. The RS has an "every
>> 5 minutes" schedule and should send e-mail just about the new orders to
> the
>> customers.
>>
>> How could I differentiate the new elements from the old ones?
>> - or -
>> How can I "mark" the orders, when the confirmation report was created
> that
>> they were processed?
>>
>> Thanks in advance,
>> Kolos
>>
>>
>>
>
>