Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

send email Expand / Collapse
Author
Message
Posted Friday, August 31, 2012 1:49 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Thursday, February 21, 2013 12:01 PM
Points: 149, Visits: 346
hi



i need to give mail ,that if number of file deleted is 5.



the message should be 5 file deleted.



i am using send email task to email.but how to count 5 in send email task
Post #1353076
Posted Friday, August 31, 2012 2:16 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 4:14 PM
Points: 13,126, Visits: 11,964
harri.reddy (8/31/2012)
hi



i need to give mail ,that if number of file deleted is 5.



the message should be 5 file deleted.



i am using send email task to email.but how to count 5 in send email task


???

http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspx


_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Post #1353085
Posted Thursday, September 13, 2012 1:44 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: 2 days ago @ 12:04 PM
Points: 35, Visits: 98
Hi Hari
please provide more detailed specs on the question. For this question, its not that the quesion is not clear.....but still people would like to get more detailed question with all the gaps filled in.

So now with your answer :

Set up a variable count_files_deleted in your SSIS

Fill this variable up with the number of files deleted. (lets say from a script component or maybe a RowCount transformation etc.)

In your SenMail task, use an expression utilizing this variable count_files_deleted to create your MessageSource property for the SendMail task.

Post #1358840
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse