Urgent help required...ssis

Hi,

We have created a ssis package to implement the incremental logic based on the start time of the server. When we execute this package through solution, the start time of the server is logged correctly. However when the package is executed through job the server time gets changed to end time of job execution.

Hence how to avoid this situation when executing through the job.

May 25th, 2014 5:30am

Hello Sainath -Can you please post the logic to get the server time which is used in SSIS? Based on that we can check for a clue.

Free Windows Admin Tool Kit Click here and download it now
May 25th, 2014 3:28pm

What function do you use to get the server start time? Is that possible to look into error.log  or looking at create date of tempdb database?
May 25th, 2014 3:55pm

Basically first we have written the logic where first we capture the source server start time and load mode =0 (bulk mode). Once the bulk mode is executed then the load mode=1(incremental mode). So the second time when the package is executed, its load mode=1 and the source server start time will be the time when the source server time was executed. This way it is working correctly when the package is executed using the visual studio.

However when the same package is executed through job, the time which gets logged after the execution is the end time of job and not the source server end time, which is why through job the package is failing.

Free Windows Admin Tool Kit Click here and download it now
May 25th, 2014 4:03pm

Do you use SSIS system variable or T-SQL function for setting date values?
May 25th, 2014 6:51pm

using variable for capturing date values.
Free Windows Admin Tool Kit Click here and download it now
May 25th, 2014 8:06pm

Are you using the system variable System::StartTime ?

May 27th, 2014 8:34pm

Hi Sainatth,

Can you try the System variable System::StartTime as Jonathan mentioned?

Regards,

Free Windows Admin Tool Kit Click here and download it now
May 28th, 2014 2:59am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics