Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Value of date from Excel changes only when run via agent

$
0
0

Hi everyone. I'm a bit of an SSIS newbie, and I'm stumped on something that should probably be really easy. I'm hoping someone has seen something like this before.

I am importing an excel file into a SQL Server table. There is one date column that is formatted as m/d/yyyy in Excel, and as yyyy-mm-dd in the SQL Server table. I handle that format change by adding a derived column.

If I execute the package manually, either locally during debugging or from the SSIS package store on SQL Server, it works perfectly. If I execute the package via SQL agent, I get no errors, but the value of the date changes. It consistently subtracts 4 years and 1 day. Some examples are below.

Excel source:

SQL server destination table:

Any suggestions are much appreciated! I'm out of ideas. :-/

Thank you!



WeeLass


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>