Hi,
I'am after some info (again!) please...
I have a text file which I currently import via a DTS package into a SQL table.(Using a DOS script....)
My problem is that the file contains a header record, numerous fixed position data fields and a trailer record.
header11223q
data1 222 333 44 555
data2 222 333 44 555
Trailer2223400753
I need to be able to drop the header/trailer when I import as these fields dont agree to the DTS/table format and it merges the header/data1 into one field and dosent import it correctly as it throws all the fields out.
Can anybody suggest a way of automatically getting rid of these records prior to importing?? or suggest another way of getting the data loaded??
I've tried importing the complete table into SQL but it seems to loose its formatting..
Any suggestions gratefully received.
Regards
PaulSc.
I'am after some info (again!) please...
I have a text file which I currently import via a DTS package into a SQL table.(Using a DOS script....)
My problem is that the file contains a header record, numerous fixed position data fields and a trailer record.
header11223q
data1 222 333 44 555
data2 222 333 44 555
Trailer2223400753
I need to be able to drop the header/trailer when I import as these fields dont agree to the DTS/table format and it merges the header/data1 into one field and dosent import it correctly as it throws all the fields out.
Can anybody suggest a way of automatically getting rid of these records prior to importing?? or suggest another way of getting the data loaded??
I've tried importing the complete table into SQL but it seems to loose its formatting..
Any suggestions gratefully received.
Regards
PaulSc.