dbTalk Databases Forums  

control flow vs data flow tasks

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


Discuss control flow vs data flow tasks in the microsoft.public.sqlserver.dts forum.



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

Default control flow vs data flow tasks - 07-29-2008 , 07:24 PM







I want to use SendMail task to send an email - only if data exists in table.

easy enough, however to check if data exists I have to go to data flow, how
do i return to control flow that data exists and yes - send an email?

tia,
chris

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

Default Re: control flow vs data flow tasks - 07-30-2008 , 03:30 AM






Hi Chris,

the best way to send mail only if the to-be-attached file isn't empty
is... not to create empty files... Have you considered such an
alternative?
Actually you don't need to be in data flow to check if data exists,
yes this can be easier performed in data flow, but with the script
task in control flow you could figure it out.
In fact I thought about Script Task, which you can use not only to
check for data inside the record but also to send the mail.
Through coding you can check and send only the most recent files, or
the files bigger than 0bytes...

HTH,
M.

On Jul 30, 2:24 am, Chris <Ch... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
I want to use SendMail task to send an email - only if data exists in table.

easy enough, however to check if data exists I have to go to data flow, how
do i return to control flow that data exists and yes - send an email?

tia,
chris


Reply With Quote
  #3  
Old   
matteus
 
Posts: n/a

Default Re: control flow vs data flow tasks - 07-30-2008 , 03:30 AM



Hi Chris,

the best way to send mail only if the to-be-attached file isn't empty
is... not to create empty files... Have you considered such an
alternative?
Actually you don't need to be in data flow to check if data exists,
yes this can be easier performed in data flow, but with the script
task in control flow you could figure it out.
In fact I thought about Script Task, which you can use not only to
check for data inside the record but also to send the mail.
Through coding you can check and send only the most recent files, or
the files bigger than 0bytes...

HTH,
M.

On Jul 30, 2:24 am, Chris <Ch... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
I want to use SendMail task to send an email - only if data exists in table.

easy enough, however to check if data exists I have to go to data flow, how
do i return to control flow that data exists and yes - send an email?

tia,
chris


Reply With Quote
  #4  
Old   
matteus
 
Posts: n/a

Default Re: control flow vs data flow tasks - 07-30-2008 , 03:30 AM



Hi Chris,

the best way to send mail only if the to-be-attached file isn't empty
is... not to create empty files... Have you considered such an
alternative?
Actually you don't need to be in data flow to check if data exists,
yes this can be easier performed in data flow, but with the script
task in control flow you could figure it out.
In fact I thought about Script Task, which you can use not only to
check for data inside the record but also to send the mail.
Through coding you can check and send only the most recent files, or
the files bigger than 0bytes...

HTH,
M.

On Jul 30, 2:24 am, Chris <Ch... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
I want to use SendMail task to send an email - only if data exists in table.

easy enough, however to check if data exists I have to go to data flow, how
do i return to control flow that data exists and yes - send an email?

tia,
chris


Reply With Quote
  #5  
Old   
matteus
 
Posts: n/a

Default Re: control flow vs data flow tasks - 07-30-2008 , 03:30 AM



Hi Chris,

the best way to send mail only if the to-be-attached file isn't empty
is... not to create empty files... Have you considered such an
alternative?
Actually you don't need to be in data flow to check if data exists,
yes this can be easier performed in data flow, but with the script
task in control flow you could figure it out.
In fact I thought about Script Task, which you can use not only to
check for data inside the record but also to send the mail.
Through coding you can check and send only the most recent files, or
the files bigger than 0bytes...

HTH,
M.

On Jul 30, 2:24 am, Chris <Ch... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
I want to use SendMail task to send an email - only if data exists in table.

easy enough, however to check if data exists I have to go to data flow, how
do i return to control flow that data exists and yes - send an email?

tia,
chris


Reply With Quote
  #6  
Old   
matteus
 
Posts: n/a

Default Re: control flow vs data flow tasks - 07-30-2008 , 03:30 AM



Hi Chris,

the best way to send mail only if the to-be-attached file isn't empty
is... not to create empty files... Have you considered such an
alternative?
Actually you don't need to be in data flow to check if data exists,
yes this can be easier performed in data flow, but with the script
task in control flow you could figure it out.
In fact I thought about Script Task, which you can use not only to
check for data inside the record but also to send the mail.
Through coding you can check and send only the most recent files, or
the files bigger than 0bytes...

HTH,
M.

On Jul 30, 2:24 am, Chris <Ch... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
I want to use SendMail task to send an email - only if data exists in table.

easy enough, however to check if data exists I have to go to data flow, how
do i return to control flow that data exists and yes - send an email?

tia,
chris


Reply With Quote
  #7  
Old   
matteus
 
Posts: n/a

Default Re: control flow vs data flow tasks - 07-30-2008 , 03:30 AM



Hi Chris,

the best way to send mail only if the to-be-attached file isn't empty
is... not to create empty files... Have you considered such an
alternative?
Actually you don't need to be in data flow to check if data exists,
yes this can be easier performed in data flow, but with the script
task in control flow you could figure it out.
In fact I thought about Script Task, which you can use not only to
check for data inside the record but also to send the mail.
Through coding you can check and send only the most recent files, or
the files bigger than 0bytes...

HTH,
M.

On Jul 30, 2:24 am, Chris <Ch... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
I want to use SendMail task to send an email - only if data exists in table.

easy enough, however to check if data exists I have to go to data flow, how
do i return to control flow that data exists and yes - send an email?

tia,
chris


Reply With Quote
  #8  
Old   
matteus
 
Posts: n/a

Default Re: control flow vs data flow tasks - 07-30-2008 , 03:30 AM



Hi Chris,

the best way to send mail only if the to-be-attached file isn't empty
is... not to create empty files... Have you considered such an
alternative?
Actually you don't need to be in data flow to check if data exists,
yes this can be easier performed in data flow, but with the script
task in control flow you could figure it out.
In fact I thought about Script Task, which you can use not only to
check for data inside the record but also to send the mail.
Through coding you can check and send only the most recent files, or
the files bigger than 0bytes...

HTH,
M.

On Jul 30, 2:24 am, Chris <Ch... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
I want to use SendMail task to send an email - only if data exists in table.

easy enough, however to check if data exists I have to go to data flow, how
do i return to control flow that data exists and yes - send an email?

tia,
chris


Reply With Quote
  #9  
Old   
matteus
 
Posts: n/a

Default Re: control flow vs data flow tasks - 07-30-2008 , 03:30 AM



Hi Chris,

the best way to send mail only if the to-be-attached file isn't empty
is... not to create empty files... Have you considered such an
alternative?
Actually you don't need to be in data flow to check if data exists,
yes this can be easier performed in data flow, but with the script
task in control flow you could figure it out.
In fact I thought about Script Task, which you can use not only to
check for data inside the record but also to send the mail.
Through coding you can check and send only the most recent files, or
the files bigger than 0bytes...

HTH,
M.

On Jul 30, 2:24 am, Chris <Ch... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
I want to use SendMail task to send an email - only if data exists in table.

easy enough, however to check if data exists I have to go to data flow, how
do i return to control flow that data exists and yes - send an email?

tia,
chris


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.