Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
SQL Server Agent
»
Ideas welcome on SSIS jobs, Agent and kicking...
Ideas welcome on SSIS jobs, Agent and kicking off another SSIS job
Rate Topic
Display Mode
Topic Options
Author
Message
chris.stuart
chris.stuart
Posted Tuesday, July 14, 2009 4:42 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: 2 days ago @ 9:11 AM
Points: 198,
Visits: 635
Hi.
I'm looking for some ideas. Currently I have 3 SSIS packages which are scheduled in SQL Server Agent. The run every 10 mins, and updates the DW. The first step in all 3 of them is to check if the latest flat file is in a directory, if not quit, else load the data into the DW, easy.
All 3 packages runs every 10 mins, first 1 on every 10 th min, second on the 11th min and 3 on the 12th min.
The packages can execute for an empty file in a few seconds, for daily data a few mins, and at the start of the month even a few hours. All 3 packages runs in parallel.
The requirement now is for me to provide data to a validation system which will be used when the mainframe is down. The table which I’ll populate is on a different server, but the table is self will require data from all 3 tables which is updated via the 3 packages.
So, therefore I need to make sure of the following:
1) That the 3 packages have finished successfully
2) That there is new data to be inserted to the validation table.
What would be best way be of achieve this?
Post #752563
n79799
n79799
Posted Wednesday, August 22, 2012 12:06 PM
SSC Rookie
Group: General Forum Members
Last Login: Wednesday, March 13, 2013 10:30 PM
Points: 35,
Visits: 81
I would create a sql agent job with first 3 steps as the run of your three SSIS packages(i think the sp is sp_start_job) and chain them such that next is kicked off only if the first one succeeds.
Then have another step where you take data from all the three tables and update the required table. Now, depending on where your destination table is(same db or another server other db), you can do that in sp or as a seperate ssis.
Configure this step as the last step in your job. Again, this should be kicked off only if the first three steps have succeeded.
This will ensure that the you update / insert your destination table only once the three SSIS packages have been indeed succeeded.
Hope this helps.
Post #1348623
pujain
pujain
Posted Monday, September 10, 2012 6:34 AM
SSC Veteran
Group: General Forum Members
Last Login: Tuesday, February 19, 2013 3:50 AM
Points: 268,
Visits: 187
yes i agreed with n79799,
create a SQL job with Four Steps, first three will have the SSIS packages and the fourth one the command to update table. Make sure to set the option so that next step run only when the previous one run successfully.
thanks
Puneet
Post #1356691
chris.stuart
chris.stuart
Posted Monday, September 10, 2012 6:43 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: 2 days ago @ 9:11 AM
Points: 198,
Visits: 635
Thanks guys. I've implemented the jobs as one big job and they wait for each step to complete. I dont have any more locks, but now I find that I do have a problem with the time it takes to load of the data itself.
I need to load the data and also export part of it again to downstream databases. Im running in to problems with it, but I'l going through all the loading steps and checking on how to speed up the loading, i.e. disabling index, using bulk loads, change updates and inserts to merges etc.
I guess I cant have your cake and eat it...
Post #1356700
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.