D
David Compton
Hi all,
Can anyone tell me if this is possible ? :-
I have several flat files created in VB6 using UDTs and the PUT command.
They include integers, etc. and are all of fixed record length.
I want to export them to SQL, but the only way I can read these files is
from VB using GET fileno, recordno, userdefinedtype.
The UDT must be specified at designtime so I can't dynamically read
different databases from the same app.
I was wondering if I could use VB.NET and the BinaryReader class to read
these records and export them to a CSV to direct to SQL ?
I already have the code that reads the .BAS file containing the type
structure, it then works out the record length and compares it to the binary
file to see how many records it contains (or if the size doesn't match).
Can anyone confirm this is possible ? (I don't want to spend a week learning
VB.NET only to find out it's not !).
OR - Does anyone know of a program that allows you to do this already ? I
believe flat binary files are similar to SAS databases ?
Any help will be gratefully received !
Cheers.
David Compton
Autoclimate Ltd.
Can anyone tell me if this is possible ? :-
I have several flat files created in VB6 using UDTs and the PUT command.
They include integers, etc. and are all of fixed record length.
I want to export them to SQL, but the only way I can read these files is
from VB using GET fileno, recordno, userdefinedtype.
The UDT must be specified at designtime so I can't dynamically read
different databases from the same app.
I was wondering if I could use VB.NET and the BinaryReader class to read
these records and export them to a CSV to direct to SQL ?
I already have the code that reads the .BAS file containing the type
structure, it then works out the record length and compares it to the binary
file to see how many records it contains (or if the size doesn't match).
Can anyone confirm this is possible ? (I don't want to spend a week learning
VB.NET only to find out it's not !).
OR - Does anyone know of a program that allows you to do this already ? I
believe flat binary files are similar to SAS databases ?
Any help will be gratefully received !
Cheers.
David Compton
Autoclimate Ltd.