Click here to Skip to main content
15,921,697 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I am Scheduling a job in SQL Server which should run for every 10sec,but the actual time taken to execute the package was 25 sec.

My Scenario was,When i scheduled like this for the first 2 times the package will get execute and entire data is getting loaded into the table(Destination) but when it get executes for the 3rd time the package stops in middle and partial amount of data is begin loaded into the table,is there any option in Job agent like once the package starts with in the scheduled time, it should complete the execution and then it should terminate even if the scheduled time is completed.
Posted

1 solution

you need to make some code change with schedule time please make addition with 10 Sec to package execution time
 
Share this answer
 
Comments
Chakri Reddy 15-Nov-13 0:20am    
When we are not sure about the package execution time then what could be the Scenario.
I mean the amount of data we get might be huge,so in that case the package execution will take more time then expected,then in that case how can we over come this problem
coded007 15-Nov-13 0:55am    
Please add code to a task executing at the end of the package or you can place this code on OnPostExecute Event, it will solve the problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900