A Microsoft platform for building enterprise-level data integration and data transformations solutions.
Use tryConvert function
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi I have date filed in my source column of string data type
datecolumn
20210521
20211005
i want to convert this value to datetime which is in my target table ,format like
2021-05-21 00:00:00.000
2021-10-05 00:00:00.000
i tried converting in the sql sselect script and try to map to the destination but its not working
please help me to define the derived column exp in ssis ,how to write the exp to write to change this date column values in ssis? please suggest
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
Additional SQL Server features and topics not covered by specific categories
Use tryConvert function
I tried using the data conversion but its failing
And which error message do you get (we can't guess that)?
Hi @Naresh y ,
Have you check your previous question in Microsoft Q&A?
how-to-convert-the-fixed-width-date-column-into-th.html
2.You may add the Data Conversion. Choose DT_DBTIMESTAMP as datatype.
And then Go to Input and Output Properties---Expand Data Conversion Output and click on the date column---Set FastParse to True in the Custom Properties.
If this do not help, you may show the error message for us to do more analysis.
If your issue has been resolved please mark the reply as answer so other user with similar problem could see this easier. :)
Regards,
Zoe
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
I tried using the data conversion but its failing
can you help with the expression
In T-SQL
select CONVERT(datetime, '20210521', 112);
See CAST and CONVERT (Transact-SQL)
For SSIS see Convert Data Type with Data Conversion Transformation