SSIS split string

蹲街弑〆低调 提交于 2019-12-24 10:58:42

问题


I have a dataset (log file) with a number of columns; one of them is Other-Data (see below) which is an unordered string and need to parse it to create new columns according the u value (U1, U2, U3, etc...)

OTHER-DATA
u1=EUR;u2=sss:Checkout-Step4:Orderacknowledgement;u3=DE:de:hom;u11=1;u12=302338533;u13=SVE1511C5E;u14=575.67

Can anyone help with this?


回答1:


One way would be to add a script transformation component, use the OTHER-DATA as your input row, parse it with C# or VB.Net and output it in the synchronous mode into the predefined outputs. This will only work if you can prepare outputs U1 to Un in advance. The very similar problem is explained here: http://www.codeproject.com/Articles/193855/An-indespensible-SSIS-transformation-component-Scr



来源:https://stackoverflow.com/questions/13085783/ssis-split-string

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