dbTalk Databases Forums  

Emailing within DTS package

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


Discuss Emailing within DTS package in the microsoft.public.sqlserver.dts forum.



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

Default Emailing within DTS package - 07-11-2006 , 02:32 PM






I need to create a DTS package that sends out an email based on a query.

Query:
Code:
SELECT @Count= count(*) FROM employee WHERE site = 1

If @Count=0 I don't want an email to be sent. If @Count>=1 then the email
should be sent out.

How do I set up the package to reflect this?

Thanks,
Ninel

--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums...r-dts/200607/1

Reply With Quote
  #2  
Old   
Davide
 
Posts: n/a

Default Re: Emailing within DTS package - 07-12-2006 , 01:55 AM






Hello ngorbunov,

Quote:
I need to create a DTS package that sends out an email based on a
query.

Query:
Code:
SELECT @Count= count(*) FROM employee WHERE site = 1
If @Count=0 I don't want an email to be sent. If @Count>=1 then the
email should be sent out.

How do I set up the package to reflect this?

Thanks,
Ninel

take a look at this post.
Bye

Davide




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.