SSIS conditional split, but want to check a pattern

纵然是瞬间 提交于 2021-01-28 02:56:10

问题


Please see the below flowchart.

enter image description here

How can i really achieve it. It tried various things in the SSIS Expression.


回答1:


If you want to use regular expressions then you could use a Script Component to fill a (new) column and then use a Conditional Split to filter on that column. Or you could redirect the 'good' and 'bad' rows to their own output within the Script Component itself. Here is an example of that. It redirects bad email addresses to an other output: http://microsoft-ssis.blogspot.com/2011/03/regular-expressions-in-ssis.html enter image description here




回答2:


Assuming any number from 0 to 99999 should be considered 'True', then you can attempt a cast and redirect the error row to 'False' if the cast to integer fails. Example:

your conditional split will be False when

(DT_I4)[Column1] > 99999

and your data flow should look like this:

enter image description here



来源:https://stackoverflow.com/questions/22754312/ssis-conditional-split-but-want-to-check-a-pattern

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!