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

Why is a derived column being used in this SSIS package

$
0
0

Hi

I am trying to figure out why a derived column is being used in a package and what the expression means. If anyone can explain it would be greatly appreciated. 

Derived Column name                                 Derived Column

MOST_RECENT_PAST_DUE_61_90_DATE    Replace 'MOST_RECENT_PAST_DUE_61_90_DATE'

Expression

LEN(MOST_RECENT_PAST_DUE_61_90_DATE) == 8 ? (DT_DATE)(SUBSTRING(MOST_RECENT_PAST_DUE_61_90_DATE,1,4) + "-" + SUBSTRING(MOST_RECENT_PAST_DUE_61_90_DATE,5,2) + "-" + SUBSTRING(MOST_RECENT_PAST_DUE_61_90_DATE,7,2)) : NULL(DT_DATE)

Data Type              Length    Code Page

String[DT_STR]        10            1252 (ANSI-Latin I)


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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