SSIS 连接时间戳列和整数

SSIS Concatenate Time Stamp Columns and Integer

我在 SSIS 中有这 3 列,我的日期在 DT_DBTIMESTAMP 中,我的公司 ID 在 INT 中:

BeginDate                EndDate                       CompanyId
2019-01-01 00:00:00.000  2019-06-01 00:00:00.000           5

我想要在 Concat 列中得到这个结果:

BeginDate                    EndDate                     CompanyId         Concat    
2019-01-01 00:00:00.000  2019-06-01 00:00:00.000           5              2001-01-01;2019-06-01;5

我怎样才能达到这个结果?

您可能需要将它们转换为字符串并在派生列转换中使用如下表达式将它们连接起来:

(DT_WSTR,30)(BeginDate) + ";" + (DT_WSTR,30)(EndDate) + ";" + (DT_WSTR,30)(CompanyId)