I am currently importing data from a flat file into SQL Server 2008 R2 (using SSIS) in the following format:
RawData_ID Station_ECID DataDate [00Hrs] [01Hrs] [02Hrs].......[23Hrs]
1 1B 2012-01-01 13.6 13.1 12.5 14.9
2 1B 2012-01-02 15.2 14.8 14.3 5.6
3 1C 2012-01-01 11.5 11.1 10.5 9.9
The fields [00Hrs] through [23Hrs] represent hourly temperature data for a particular Station on a particular date. I would like instead to import the data into the database in the following format:
RawData_ID Station_ECID DataDate Hour Temp
1 1B 2012-01-01 00 13.6
2 1B 2012-01-01 01 13.1
3 1B 2012-01-01 02 12.5
.
.
.
How do I do this using Integration Services?
Thanks