Hello everyone,
I would like to know how to achieve the following tasks and hear about some best practice tips.
I'm in the SQL Sever 2012 development environment.
a) how does one send a child package variable to a parent package to just read its value?
In the data flow of my child package I write the row count of an Excel file to a variable called rowCount. Now, I want to output this value to the user via a mail task that I have in my parent package. How can I access this variable in my parent? Do I
need to add some task after the data flow in my child package?
b) how do I go about handling an "error" that appears in my child package?
In my Excel I check a certain cell via a script task for a true or false value. If it is false the user should get an error notification via the parents mail task. I know I could force the child package to fail with the script task but maybe it is better to
simply pass the false value back to the parent.
In a different project I force the error but send the success or failure message in my child package. How do you do that?
c) about handling connections for all the packages
I have a DEV and PROD environment in the SSIS catalog with database- and servername but how do I set up each task in my packages to use the right variable. For example when I have a SQL Task that uses a delete from statement I have to assign a connection to
the task. How is this then handled when I want this task to be executed on a different server - when I have the same database and table names for both environments? Is this all done within the MSSMS catalog or do I need to set up two connection mangers in
the project or is this done via project params?
Well, that's it for now :-)
Hope you can give me some examples or guidelines.
thank you.