By "variable format" I mean that each row in the text file begins with a single character code denoting the record type, and each record type has a different format. I believe this is some sort of fairly common mainframe data export method. What makes matters worse is the fact that the record types are actually hierarchies. The codes in use are related as follows:
0ThisIsAFileHeader
2ThisIsABatchHeader
4ThisIsDetailData
4ThisIsDetailData
6ThisIsAMatchingBatchFooter
8ThisIsAMatchingFileFooter
0/8 are header/trailer records (each of their own format), 2/6 are sub-header/sub-trailer records (also each of their own formats) and 4 indicates the actual data or detail records.
SQL Server 2008, Visual Studio.NET 2008. Is a custom script task the only way to import this data? Given that, could someone point me to a resource that discusses doing so? Importing a fixed-width text file is pretty straightforward, but I'm not sure where the script task would fall in the control flow and how the data would be utilized by subsequent steps.