Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS splitting records with Script Component

$
0
0

Guys,

i have got below requirement which needs to be done in SSIS Script component. Can someone please help me to achieve this task

Script component Input:

RowID   Action  TestID

1           B          234

2           C         124

2           C          654

3           C         123

3           NULL    345

Here i need to split the records based on below scenarios

Result Set 1: Action = B

Result Set 2: Action = C but should have only one C for each Row ID ( in our example Row ID 3 will  be sent)

Result Set 3: Action = C but should have more than one C for each Row ID ( Exception Scenario - Need to generate exception message) (in our example Row ID 2 will be sent for error result set)

Yes, I thk this should can be achieved in Script Component with 3 different output(Asynchronous).

Can someone help me to achieve this easily in script component or any other easy ways.

Note the inputs are from flat file source


Balamurugan




Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>