The tutorial helped, but I can't seem to find the RowCount variable in the variable list. Can you please let me know where I can find that?
If you open the Variables window, to find the RowCount Varaiable, follow this path:
%Variables%---->Functions---String.RowCount
I would take that to mean you could use this basic format, to replace 'helloworld' with a variable for your output (this example returns '1'):
{STRING(RowCount|helloworld)}I'm going to use the
{TASK(PrevTask,StdOut)} variable that represents the immediatly preceding tasks Standard Output.
For example, and this is my very simple test, I created a job with 2 tasks.
Task1: SQL Query that does "select * FROM dbo.tablename"
Thats it for Task1. Becuase of this, it returns all the rows into the Std Output for Task1
Task2: E-mail task. In the 'Text' of the message I put this:
There are {STRING(RowCount|{TASK(PrevTask,StdOut)})} rows in your SQL Query Results.So my e-mail said this, which was correct in my case:
There are 1733 rows in your SQL Query Results
Hope this helps,
Brian
Edited by user
2012-10-17T21:35:50Z
|
Reason: Not specified