Processing flat file using SSIS -
I have to process a successful file that contains a list of codes and sub codes, for example
Subcoda 2
Subcoda 2
Codeb
Subcodbi 1
Subcoda 2
< P> Basically I need a code to code these two different code lists using code list A and B for two different tables using SSIS.Using ssis to relate each code to sub-code is a bit odd when I want to filter each code or sub-code separately, so the system is easy, but every code There is no easy way to relate your code without using a script component. Would it be better to use a net pure solution if I am using a script component? any idea? Or did I clarify something in the toolbox that can do the trick for this problem?
I will load this data in a SQL table with an additional column with datatype = integer and Identity set This will give you an incremental row number for each line.
Then I will type a complex SQL query to split the data, e.g. Code for B lines:
SELECT * FROM Staging_Table WHERE Identity_Column & lt; (SELECT Identity_Column FROM Staging_Table WHERE Generic_Column = 'CodeB')
Comments
Post a Comment