替换SSIS中的随机字符

时间:2017-12-20 01:18:14

标签: sql-server replace ssis expression etl

我在SSIS中创建了一个派生列表达式,用于替换随机字符,这些字符在运行包时出现在描述列中。表达式除了?运行包时出现在描述开头的标记。

我查看了源表描述列,但找不到任何问题。我已经包含了我正在使用的表达式。有什么我想念的。

感谢任何帮助。

(DT_STR,4000,1252)SUBSTRING(REPLACE(REPLACE(REPLACE(DCCDescNew,"&#58;",":"),"</p>"," "),"</div>"," "),60,4000)

1 个答案:

答案 0 :(得分:0)

可以使用简单的替换功能替换REPLACE([Col],"?"," ")

(DT_STR,4000,1252)SUBSTRING(REPLACE(REPLACE(REPLACE(REPLACE(DCCDescNew,"&#58;",":"),"</p>"," "),"</div>"," "),"?"," "),60,4000)

您的派生列表达式应为

{"Date":"2016-12-14T00:00:00"}

ERROR TypeError: date.getTime is not a function
    at Object.exports.cloneDate (clone-date.js:15)
    at DatePickerComponent.writeValue (datepicker.component.js:295)
    at setUpControl (shared.ts:57)
    at FormControlDirective.ngOnChanges (form_control_directive.ts:107)
    at checkAndUpdateDirectiveInline (provider.ts:276)
    at checkAndUpdateNodeInline (view.ts:519)
    at checkAndUpdateNode (view.ts:462)
    at debugCheckAndUpdateNode (services.ts:389)
    at debugCheckDirectivesFn (services.ts:476)
    at Object.eval [as updateDirectives] (CellComponent.html:17)

如果这不起作用,请检查问号是否为unicode字符