Data Conversion in SSIS

后端 未结 1 845
渐次进展
渐次进展 2021-01-27 15:54

I posted one proble yesterday related to data conversion. Now i am rephraising the problem as below.

I have one Text fle where i have date and Time as string. So i need

相关标签:
1条回答
  • 2021-01-27 16:15

    Finally i figured it out!

    i followed folowing steps.

    1. Convert string "DATE G" in to DT_DATE
    2. DATEADD("Hh",0, outputfrom step 1)
    3. SUBSTRING("TIME G",1,2) store in one output, SUBSTRING("TIME G",3,2) store in one output, SUBSTRING("TIME G",5,3) store in one output

    4. ADD all using DATEADD() and type cast the output to DT_DATE as its output is DT_DBTIMESTAMP which can not be converted to DT_Numeric directlly.

    5. Type Cast to (DT_NUMERIC) output from step 4

    Thanks all

    Plese let me know if its not explained well.

    Thank you all

    0 讨论(0)
提交回复
热议问题