dbTalk Databases Forums  

detect if a package/stored proc/email has already been run/exec/sent???

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss detect if a package/stored proc/email has already been run/exec/sent??? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
micenmen
 
Posts: n/a

Default detect if a package/stored proc/email has already been run/exec/sent??? - 04-21-2006 , 11:18 AM






Allo,

I've set up a system that sends out an email if certain defect levels
are in my DB are met. The system consists of a DTS package that
processes the cubes, then runs a sql task that executes a stored proc
to check levels and send out an email with xp_sendmail if they are too
high. I would like to send that email out only once when the criteria
is met. We process our cubes every minute and we do not need an email
sent out every minute until the problem is corrected. I'm a bit new to
all this, and would love any ideas or feedback.

Thanks!

-Joey


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: detect if a package/stored proc/email has already been run/exec/sent??? - 04-21-2006 , 11:53 AM






So have a flag somewhere in the database that you check to see if the eMail
has been set within the last valid period (Hour/Day/Week). If it has then
do not resend else send.

--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"micenmen" <joeypruett (AT) hotmail (DOT) com> wrote

Quote:
Allo,

I've set up a system that sends out an email if certain defect levels
are in my DB are met. The system consists of a DTS package that
processes the cubes, then runs a sql task that executes a stored proc
to check levels and send out an email with xp_sendmail if they are too
high. I would like to send that email out only once when the criteria
is met. We process our cubes every minute and we do not need an email
sent out every minute until the problem is corrected. I'm a bit new to
all this, and would love any ideas or feedback.

Thanks!

-Joey




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.