So you are in SSIS
There is the Pivot transform but the issue with that is the same as with the
Pivot() statement in TSQL. It is not dynamic.
You can't really just add columns to the pipeline in SSIS either as it is
very metadata driven and this would be a bad thing.
If these files are from the same provider then I would be pushing back for
standardisation
OR
I would look to build a pipeline for each file type and I would also
segregate the files based on their construction into seperate folders
That said you may be able to make the whole row be a single column instead
of being a series of columns and then do some splitting. Similar to this
The Script Component(As A Transform)
(
http://www.sqlis.com/default.aspx?307)
--
Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com "rockicooki" <rockicooki.2bk5dz@no-mx.forums.yourdomain.com.au> wrote in
message news:rockicooki.2bk5dz@no-mx.forums.yourdomain.com.au...
[quoted text, click to view] >
> Hi
>
> I have a situation where I have to import multiple .csv files. The
> number of columns may differ in the files and the data is pivoted..
> needs to be unpivoted.
>
> The destination table is the same for all these files. Once unpivoted,
> data looks similar.
>
> In SSIS,
> - is it possible to do a dynamic lookup of columns?
>
> Thanks
>
>
> --
> rockicooki
> ------------------------------------------------------------------------
> rockicooki's Profile:
http://www.dbtalk.net/m575 > View this thread:
http://www.dbtalk.net/t320763 >