all groups > sql server reporting services > august 2004 >
You're in the

sql server reporting services

group:

"marking" the processed elements in data-driven subscription


"marking" the processed elements in data-driven subscription Kolos Daniel
8/12/2004 3:06:19 PM
sql server reporting services:
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


Re: "marking" the processed elements in data-driven subscription Bender
8/12/2004 4:20:03 PM

[quoted text, click to view]

Re: "marking" the processed elements in data-driven subscription Bender
8/12/2004 4:20:27 PM

[quoted text, click to view]



Re: "marking" the processed elements in data-driven subscription Kolos Daniel
8/13/2004 8:43:51 AM
????


[quoted text, click to view]

Re: "marking" the processed elements in data-driven subscription Matt
10/7/2004 2:49:36 PM
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

[quoted text, click to view]

Re: "marking" the processed elements in data-driven subscription Matt Temple
11/22/2004 11:44:37 AM
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]

Re: "marking" the processed elements in data-driven subscription Matt
12/2/2004 8:36:52 AM
lol, actually, I do use a stored procedure. I was being just more general
and wasn't sure of Kolos's particular scenario.



[quoted text, click to view]

AddThis Social Bookmark Button