![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a fixed length text file that I wish to import into SQL tables. The text file will contain 2 different types of records. Firstly, a header record, which is immediately followed by X number of detail records. Each record is 80 characters long, separated by a CRLF, and the type of record is identified at the beginning (first 2 char's). I would like to insert the header records into a header table, returning the unique ID (auto incrementing ID) of the row inserted into the header table, which will be used when inserting the associated detail records. Does anybody have any sample ActiveX scripts that do something similar to the above? Basically, I'm after an example script that opens a file, loops around each row in the file and tests the data in some means. Any examples would be absolutely fantastic and much appreciated! Many thanks Anthony |
![]() |
| Thread Tools | |
| Display Modes | |
| |