In SSIS - how can I split the data from a row into 2 rows for example:
FROM:
ID Data 1 On/Off 2 On/Off
TO:
ID Data 1 On 1 Off 2 On 2 Off
For this you need to use the script component. Use a non-synchronous output buffer to generate multiple lines from a line based on your own logic.
DataFlow Task
Flat File Source
Script Component
ID
Data
Input and Outputs
Synchronous Input
none
Output
Visual Basic
script
Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer) Dim strValues() as String = Row.Data.Split(CChar("/") For each str as String in strValues Output0Buffer.AddRow() Output0Buffer.ID = Row.ID Output0Buffer.Data = str Next End Sub
:
, , n , SQL
Source: https://habr.com/ru/post/1692036/More articles:DDD: final consistency and 1 to n relationships - domain-driven-designWhy MVC uses ModelState for the supplied model in GET - c #Passing ngFor variable to ngIf template - angularUITableView didEndDisplaying не вызывается при воспроизведении видео - iosAsp.Net MVC view does not display model changes made by controller - asp.net-mvcPass variable in Angular 2 template - javascriptSelect segmented color images using an array with a mask in bulk and imshow - pythonOutputting multiple lines from a script component to enter a single line - ssisEnabling errorEnabled and passwordToggleEnabled in TextInputLayout - androidhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1692041/why-intellij-idea-suggests-to-create-intermediate-list-while-converting-array-to-set-using-loop&usg=ALkJrhjQfSi8DlK9-tqBvxGIq1jlN2YCJAAll Articles