dbTalk Databases Forums  

Results in email

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


Discuss Results in email in the microsoft.public.sqlserver.dts forum.



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

Default Results in email - 07-21-2004 , 07:30 AM






Hi
Have used DTS wizard before but now have to use DTS Designer for first time and need some assistance. I have a number of SQL updates that I have setup as Execute SQL Tasks. What I am trying to achieve is to output the number of records affected by the various updates to maybe a global variable and then the last step of the DTS package is to email the results to an email group. I will continue to worj out but if anyone can offer help/ideas would be much appreciated. Thanks

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

Default Re: Results in email - 07-21-2004 , 07:36 AM






In your Proc you could pass out the number of rows affected as Output
parameters

You can then use this article to extract them into Global Variables

Global Variables and Stored Procedure Parameters
(http://www.sqldts.com/Default.aspx?234)


You can then use the object model to assign them to the body of your eMail

Changing the DTS Send Mail Task
(http://www.sqldts.com/default.aspx?235)


--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Dazza" <Dazza (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi
Have used DTS wizard before but now have to use DTS Designer for first
time and need some assistance. I have a number of SQL updates that I have
setup as Execute SQL Tasks. What I am trying to achieve is to output the
number of records affected by the various updates to maybe a global variable
and then the last step of the DTS package is to email the results to an
email group. I will continue to worj out but if anyone can offer help/ideas
would be much appreciated. Thanks




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.