Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How do I use integration services to import data from a test file with the following format

$
0
0

I am wondering how to import the following data into a SQL server database using SSIS. This is a text file in which the 1st 7 digits (i.e. 4010810) represents a location identifier, the next 8 digits (i.e. 20020101) represents a date (in this case it would be January 1, 2002). The next 3 digits (078) tell me what type of data I am looking at (in this case it is temperature data). The next digits (all separated by spaces except for the 1st datapoint) are values of the variable I am looking at. In this case they represent hourly temperature data....for the 1st record the temperature at 12:00am is -18.5C, at 1am it is -18.6C, at 2am -18.8C and so on.....(Obviously, for clarity, I didnt show all the data here)

401081020020101078-00185 -00186 -00188 -00190 -00192 -00194 -00193 -00195 -00201 -00201 -00206 -00214
401081020020102078-00232 -00230 -00221 -00215 -00213 -00219 -00226 -00213 -00201 -00205 -00198 -00167

                                                                                                    .

                                                                                                    .

                                                                                                    .

How can I import this data into my database?

Thanks


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>