Hello,
I have created a view named V_XX_Plan on my SQL Server 2005 Database.
This view contain only one row and I select only one column like this:
select errors from V_XX_Plan
--> should always return 0
I would like to create a SSIS package to check if this value is = 0 or if not, to do a "send email" task.
For that I create a new SSIS package.
I have a variable called "Errors", package, Int32.
I created a SQL Task with the SQL query on the view and with this parameter:
ResultSet: Single Row
SQL Source: Direct Input
SQL Statement: select errors from V_XX_Plan
Result Name: 0 --> User::Errors
And know how can I do execute my "Email" task depending of this result (send only if <> 0) ?
Thanks in advance for your help
I have created a view named V_XX_Plan on my SQL Server 2005 Database.
This view contain only one row and I select only one column like this:
select errors from V_XX_Plan
--> should always return 0
I would like to create a SSIS package to check if this value is = 0 or if not, to do a "send email" task.
For that I create a new SSIS package.
I have a variable called "Errors", package, Int32.
I created a SQL Task with the SQL query on the view and with this parameter:
ResultSet: Single Row
SQL Source: Direct Input
SQL Statement: select errors from V_XX_Plan
Result Name: 0 --> User::Errors
And know how can I do execute my "Email" task depending of this result (send only if <> 0) ?
Thanks in advance for your help