I've to import a file (probably .csv or .txt) via a SSIS-package. The problem is, that the file is an excel file at the moment and is written very human readable which means it looks something like this:
Name1; ColumnName1; Data; Data; Data;...
Name1; ColumnName2; Data; Data; Data;...
Name1; ColumnName3; Data; Data; Data;...
Name2; ColumnName1; Data; Data; Data;...
Name2; ColumnName2; Data; Data; Data;...
The thing is that I need a database compatible order for the import. I did try to import everything in a dummy table with columns like Value0, Value1, Value3,... just as the file looks like at the moment and then dynamically create a new Table with the column names which are the values contained in Value1 of my dummy table. But how can I insert the values in the right column? And also I don't think that this is a good way to import files... (I hope you understand what I mean)
Does anyone have any idea how to handle these files?
Thanks in advance!