<p>Here's my scenario - I have an SSIS job that depends on another prior SSIS job to run. I need to be able to check the first job's status before I kick off the second one. It's not feasible to add the 2nd job into the workflow of the first one, as it is already way too complex. I want to be able to check the first job's status (Failed, Successful, Currently Executing) from the second one's, and use this as a condition to decide whether the second one should run, or wait for a retry. I know this can be done by querying the MSDB database on the SQL Server running the job. I'm wondering of there is an easier way, such as possibly using the WMI Data Reader Task? Anyone had this experience?</p>

[{'answer_id': 39820, 'author': 'jason saldo', 'author_id': 1293, 'author_profile': 'https://Stackoverflow.com/users/1293', 'pm_score': 3, 'selected': True, 'text': '<p>You may want to create a third package the runs packageA and then packageB.  The third package would only contain two execute package tasks.</p>\n\n<p><a href="http://msdn.microsoft.com/en-us/library/ms137609.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms137609.aspx</a></p>\n\n<p>@Craig\nA status table is an option but you will have to keep monitoring it.</p>\n\n<p>Here is an article about events in SSIS for you original question.<br>\n<a href="http://www.databasejournal.com/features/mssql/article.php/3558006" rel="nofollow noreferrer">http://www.databasejournal.com/features/mssql/article.php/3558006</a></p>\n'}, {'answer_id': 39852, 'author': 'Craig', 'author_id': 2894, 'author_profile': 'https://Stackoverflow.com/users/2894', 'pm_score': 0, 'selected': False, 'text': "<p>Why not use a table?  Just have the first job update the table with it's status.  The second job can use the table to check the status.  That should do the trick if I am reading the question correctly.  The table would (should) only have one row so it won't kill performance and shouldn't cause any deadlocking (of course, now that I write it, it will happen) :)</p>\n\n<p>@Jason: Yeah, you could monitor it or you could have a trigger start the second job when the end status is recieved. :)</p>\n"}]
['https://Stackoverflow.com/questions/39780', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1284/']