Issue importing data with date from CRM

2019-06-09 13:50发布

Recently i'm importing data from CRM dynamics 11 to our sql database on daily basis. I have created an SSIS package which does the import. My issue is in CRM i have member's date of birth as "1990-04-25" but when i import it to our sql database, it comes as "1990-04-24 23:00:00.000". The issue is it deduct one day back from the date of birth. The issue is only with those date of birth which has date time attached to it.

Any solution to the above issue please?

NOTE :- my table data type is - datetime , and same goes for the CRM.

date flow i'm using in ssis is an add on from kingswaysoft.

Kind Regards...

Solution :- Solution can be found here https://social.msdn.microsoft.com/Forums/sqlserver/en-US/67564e18-ea49-4d90-bc79-18e3213cffb2/loading-datetime-field-gives-wrong-dates-in-ssis?forum=sqlintegrationservices . It has been fixed.

According to the description, the issue is that BisStartDate column displays one hour before the actual datetime in SSIS.

To work around this issue, we can use a Derived Column that contains the correct datetime to replace the BisStartDate column, then use the new BisStartDate column to do the following transformations. The following screenshot is for your reference:

0条回答
登录 后发表回答