2

在更新我并最终将其添加到数据库之前,我需要实现SCD类型 2,这是我在拆分条件中的条件。RecordEndDate但是即使它不满足条件它仍然会继续将它添加到数据库中

((PlateNo == Stage_PlateNo)) && (([Car Name] != [Stage_Model]) || 
 ([Manufacturer] != [Stage_Manufacturer]) ||
  [Year Model] != Stage_Year || 
  [Car Body Type] != Stage_BodyType ||
  Transmission != Stage_Transmission ||
 [Daily Rate (in Peso)] != Stage_DailyRate
 )
4

1 回答 1

1

IMO your requirements are far too complex to attempt in an SSIS Expression. I recommend you recode this logic in a Script transformation. I would pre-create a new Column e.g. Include_Row and in the Script set it's value to yes or no.

This approach will give you much more code flexibility and better debugging possibilities.

于 2012-10-31T01:20:03.437 回答