I'm currently able to get this type of output from a flat file after running a script component in SSIS:
My goal is to fill in the rest of the column with the same serial number like this:
I tried to do this by setting it a variable and using a derived column, but the variable isn't set til after the data flow. Also the script only reads line by line so I don't see an obvious way to do this simple task.
Is there a way to create a column in the script and give it a default value of the serial number? Or is there a way for use a SQL command to update the Null values Where the column is Not Null?
You can try this design in order to perform what you need (feel free to simplify it, tested with your input data) :