TSYSTEMS_LOBPLM
asked on
SSIS - Add new data rows
Hello,
I am using SQL Server Business Intelligence Development Studio 2005 and I have the following problem:
I have a dataset, consisting of different attributes. If one attribute value consists exactly of the String "string1/string2", the string must be splitted into "string1" and "string2". The splitted "string2" has to be added as a new row in the same table and schould keep the same values for the others attributes as "string1/string2".
How can I realize this issue?
Thanks.
I am using SQL Server Business Intelligence Development Studio 2005 and I have the following problem:
I have a dataset, consisting of different attributes. If one attribute value consists exactly of the String "string1/string2", the string must be splitted into "string1" and "string2". The splitted "string2" has to be added as a new row in the same table and schould keep the same values for the others attributes as "string1/string2".
How can I realize this issue?
Thanks.
this is obvious that you should use Script Component Asynchronously, because you should load data first and make output rows as you want,
this is my article about asynchronous script component:
https://www.experts-exchange.com/A_2886-How-to-use-Script-Component-as-Asynchronous-Transformation.html
and also you should use Split function in script task to split input value based on ( / ) character,
string[] inputarray=Row.InputCol.Sp lit("/");
and then loop through this inputarray and add new rows.
but for detailed help, and exact code for your problem, you should provide information I requested in first post.
this is my article about asynchronous script component:
https://www.experts-exchange.com/A_2886-How-to-use-Script-Component-as-Asynchronous-Transformation.html
and also you should use Split function in script task to split input value based on ( / ) character,
string[] inputarray=Row.InputCol.Sp
and then loop through this inputarray and add new rows.
but for detailed help, and exact code for your problem, you should provide information I requested in first post.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
what is input columns and what is output columns exactly?
also samples of inputs and output....